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

Approved by: Albert Astals Cid

commitba3f27e79a73021df0477f3435477035313c280e authorAndrea Cimitan <andrea.cimitan@gmail.com> dateThu 22 Sep 2016, 07:33 (10 years ago) parent9ef205a174b17a
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