@@ -54,6 +54,7 @@ Item {
5454 tryCompare(dashContentList, "count", 0);
5555 scopes.load();
5656 tryCompare(dashContentList, "currentIndex", 0);
57+ tryCompare(dashContentList, "count", 6);
5758 }
5859
5960 function get_scope_data() {
@@ -273,6 +274,8 @@ Item {
273274 // Click on a temp scope in the search
274275 var dashCategorysearchA = findChild(searchResultsViewer, "dashCategorysearchA");
275276 var cardTempScope = findChild(dashCategorysearchA, "delegate2");
277+ verify(cardTempScope, "Could not find delegate2");
278+
276279 waitForRendering(cardTempScope);
277280 mouseClick(cardTempScope, cardTempScope.width / 2, cardTempScope.height / 2);
278281
@@ -313,13 +316,10 @@ Item {
313316 var startY = dash.height / 2;
314317 var stopX = units.gu(1)
315318 var stopY = startY;
316− var retry = 0;
317− while (dashContentList.currentIndex != 2 && retry <= 5) {
318− mouseFlick(dash, startX, startY, stopX, stopY)
319− waitForRendering(dashContentList)
320− retry++;
321− }
322− compare(dashContentList.currentIndex, 2);
319+ waitForRendering(dashContentList)
320+ mouseFlick(dash, startX, startY, stopX, stopY);
321+ mouseFlick(dash, startX, startY, stopX, stopY);
322+ compare(dashContentList.currentIndex, 2, "Could not flick to scope id 2");
323323 var dashCommunicatorService = findInvisibleChild(dash, "dashCommunicatorService");
324324 dashCommunicatorService.mockSetCurrentScope("clickscope", true, true);
325325 tryCompare(dashContentList, "currentIndex", 1)