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

Approved by: Albert Astals Cid

commit66f5b8ed21eb9f8a46fed7ac5a4d199c0a1b041c authorAndrea Cimitan <andrea.cimitan@gmail.com> dateTue 13 Sep 2016, 06:46 (10 years ago) parent80f72d0174b17a
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