on xenial help sign in
Try waiting here a bit
9319a17Albert Astals
tests/qmltests/Dash/tst_Dash.qml+4−2
@@ -243,8 +243,10 @@ Item {
243 tryCompare(scopesOverviewRepeater, "count", 0);
243 tryCompare(scopesOverviewRepeater, "count", 0);
244
244
245 // Click on a temp scope in the search
245 // Click on a temp scope in the search
246+ tryCompareFunction( function() {
246− var dashCategorysearchA = findChild(searchResultsViewer, "dashCategorysearchA");
247+ return findChild(findChild(searchResultsViewer, "dashCategorysearchA"), "delegate2") != null;
248+ }, true);
247− var cardTempScope = findChild(dashCategorysearchA, "delegate2");
249+ var cardTempScope = findChild(findChild(searchResultsViewer, "dashCategorysearchA"), "delegate2");
248 verify(cardTempScope, "Could not find delegate2");
250 verify(cardTempScope, "Could not find delegate2");
249
251
250 waitForRendering(cardTempScope);
252 waitForRendering(cardTempScope);