on xenial help sign in
Make test a bit more resilient

The loader is async so need to make sure the object is there

commit844709ca86b479b71196a99a172d5c7560c7b4ee authorAlbert Astals Cid <albert.astals@canonical.com> dateMon 9 May 2016, 15:20 (10 years ago) parentb0fad55
1 file changed+1
tests/qmltests/Dash/tst_Dash.qml+1
tests/qmltests/Dash/tst_Dash.qml+1
@@ -629,6 +629,7 @@ Item {
629629 touchFlick(dash, dash.width / 2, dash.height - 1, dash.width / 2, units.gu(2));
630630 var bottomEdgeController = findInvisibleChild(dash, "bottomEdgeController");
631631 tryCompare(bottomEdgeController, "progress", 1);
632+ tryCompareFunction(function () { return findChild(dash, "scopesListCategoryother") !== null; }, true);
632633 var nonfavScopesListCategory = findChild(dash, "scopesListCategoryother");
633634 var nonfavScopesListCategoryList = findChild(nonfavScopesListCategory, "scopesListCategoryInnerList");
634635 tryCompare(nonfavScopesListCategoryList, "currentIndex", 0);