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

Approved by: Albert Astals Cid

commitd318b0b22623852b3b9e753f46cd06eb46bce1b4 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateFri 9 Sep 2016, 14:42 (10 years ago) parentad13d2f174b17a
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