on xenial help sign in
add a couple of waiting tricks for a flaky dash test

Approved by: Albert Astals Cid

commit17e731e5f6f354ccd8d5286dcc149b6a98e1d1cb authorAndrea Cimitan <andrea.cimitan@gmail.com> dateWed 14 Sep 2016, 00:33 (10 years ago) parentdea63d7174b17a
1 file changed+2
tests/qmltests/Dash/tst_Dash.qml+2
tests/qmltests/Dash/tst_Dash.qml+2
@@ -215,6 +215,8 @@ Item {
215215
216216 // Click in first item
217217 var favScopesListCategoryList = findChild(findChild(dash, "scopesListCategoryfavorites"), "scopesListCategoryInnerList");
218+ tryCompareFunction(function() { return favScopesListCategoryList.currentItem !== null }, true);
219+ waitForRendering(favScopesListCategoryList.currentItem);
218220 mouseClick(favScopesListCategoryList.currentItem);
219221
220222 // Make sure animation went back