@@ -54,6 +54,7 @@ Item {
54 tryCompare(dashContentList, "count", 0);
54 tryCompare(dashContentList, "count", 0);
55 scopes.load();
55 scopes.load();
56 tryCompare(dashContentList, "currentIndex", 0);
56 tryCompare(dashContentList, "currentIndex", 0);
57+ tryCompare(dashContentList, "count", 6);
59 function get_scope_data() {
60 function get_scope_data() {
@@ -273,6 +274,8 @@ Item {
273 // Click on a temp scope in the search
274 // Click on a temp scope in the search
274 var dashCategorysearchA = findChild(searchResultsViewer, "dashCategorysearchA");
275 var dashCategorysearchA = findChild(searchResultsViewer, "dashCategorysearchA");
275 var cardTempScope = findChild(dashCategorysearchA, "delegate2");
276 var cardTempScope = findChild(dashCategorysearchA, "delegate2");
277+ verify(cardTempScope, "Could not find delegate2");
276 waitForRendering(cardTempScope);
279 waitForRendering(cardTempScope);
277 mouseClick(cardTempScope, cardTempScope.width / 2, cardTempScope.height / 2);
280 mouseClick(cardTempScope, cardTempScope.width / 2, cardTempScope.height / 2);
@@ -313,13 +316,10 @@ Item {
313 var startY = dash.height / 2;
316 var startY = dash.height / 2;
314 var stopX = units.gu(1)
317 var stopX = units.gu(1)
315 var stopY = startY;
318 var stopY = startY;
317− while (dashContentList.currentIndex != 2 && retry <= 5) {
318− mouseFlick(dash, startX, startY, stopX, stopY)
319− waitForRendering(dashContentList)
319+ waitForRendering(dashContentList)
320− retry++;
320+ mouseFlick(dash, startX, startY, stopX, stopY);
321− }
321+ mouseFlick(dash, startX, startY, stopX, stopY);
322− compare(dashContentList.currentIndex, 2);
322+ compare(dashContentList.currentIndex, 2, "Could not flick to scope id 2");
323 var dashCommunicatorService = findInvisibleChild(dash, "dashCommunicatorService");
323 var dashCommunicatorService = findInvisibleChild(dash, "dashCommunicatorService");
324 dashCommunicatorService.mockSetCurrentScope("clickscope", true, true);
324 dashCommunicatorService.mockSetCurrentScope("clickscope", true, true);
325 tryCompare(dashContentList, "currentIndex", 1)
325 tryCompare(dashContentList, "currentIndex", 1)