on xenial help sign in
Fix dash tests
commit96f8b91c1c0541a8e8dc74b18a6e9d08e45ab712 authorJosh Arenson <joshua.arenson@canonical.com> dateThu 17 Nov 2016, 15:33 (10 years ago) parenta1ef65a
1 file changed+4−3
tests/qmltests/Dash/tst_Dash.qml+4−3
tests/qmltests/Dash/tst_Dash.qml+4−3
@@ -588,10 +588,10 @@ Item {
588588
589589 // Go to a temp scope
590590 open_manage_dash();
591+ flickToYEnd(findChild(dash, "scopesListFlickable"));
591592
592593 var nonfavScopesListCategory = findChild(dash, "scopesListCategoryother");
593594 var nonfavScopesListCategoryList = findChild(nonfavScopesListCategory, "scopesListCategoryInnerList");
594− flickToYEnd(findChild(dash, "scopesListFlickable"));
595595 tryCompare(nonfavScopesListCategoryList, "currentIndex", 0);
596596 mouseClick(nonfavScopesListCategoryList.currentItem);
597597 var dashTempScopeItem = findChild(dash, "dashTempScopeItem");
@@ -660,13 +660,14 @@ Item {
660660 // Go to a temp scope
661661 open_manage_dash();
662662
663+ var scopesListFlickable = findChild(dash, "scopesListFlickable");
664+ flickToYEnd(scopesListFlickable);
665+
663666 var nonfavScopesListCategory = findChild(dash, "scopesListCategoryother");
664667 var nonfavScopesListCategoryList = findChild(nonfavScopesListCategory, "scopesListCategoryInnerList");
665− var scopesListFlickable = findChild(dash, "scopesListFlickable");
666668 tryCompare(nonfavScopesListCategoryList, "currentIndex", 0);
667669
668670 // Ensure the non-favorites, located at the bottom, are visible
669− flickToYEnd(scopesListFlickable);
670671 mouseClick(nonfavScopesListCategoryList.currentItem);
671672 var dashTempScopeItem = findChild(dash, "dashTempScopeItem");
672673 tryCompare(dashTempScopeItem, "x", 0);