on xenial help sign in
Increase dash flicking retries to 10, as 5 wasn't enough apparently.
2f2bc75Michał Sawicz
tests/qmltests/Dash/tst_Dash.qml+2−2
@@ -314,12 +314,12 @@ Item {
314 var stopX = units.gu(1)
314 var stopX = units.gu(1)
315 var stopY = startY;
315 var stopY = startY;
316 var retry = 0;
316 var retry = 0;
317− while (dashContentList.currentIndex != 2 && retry <= 5) {
317+ while (dashContentList.currentIndex != 2 && retry <= 10) {
318 mouseFlick(dash, startX, startY, stopX, stopY)
318 mouseFlick(dash, startX, startY, stopX, stopY)
319 waitForRendering(dashContentList)
319 waitForRendering(dashContentList)
320 retry++;
320 retry++;
321 }
321 }
322− compare(dashContentList.currentIndex, 2);
322+ compare(dashContentList.currentIndex, 2, "Could not flick to scope id 2 in 10 retries");
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)