on xenial help sign in
Increase dash flicking retries to 10, as 5 wasn't enough apparently.
commit2f2bc7526902761e2d11aafe43ace57a6129218e authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 14 Aug 2014, 01:06 (12 years ago) parentc4d483f
1 file changed+2−2
tests/qmltests/Dash/tst_Dash.qml+2−2
tests/qmltests/Dash/tst_Dash.qml+2−2
@@ -314,12 +314,12 @@ Item {
314314 var stopX = units.gu(1)
315315 var stopY = startY;
316316 var retry = 0;
317− while (dashContentList.currentIndex != 2 && retry <= 5) {
317+ while (dashContentList.currentIndex != 2 && retry <= 10) {
318318 mouseFlick(dash, startX, startY, stopX, stopY)
319319 waitForRendering(dashContentList)
320320 retry++;
321321 }
322− compare(dashContentList.currentIndex, 2);
322+ compare(dashContentList.currentIndex, 2, "Could not flick to scope id 2 in 10 retries");
323323 var dashCommunicatorService = findInvisibleChild(dash, "dashCommunicatorService");
324324 dashCommunicatorService.mockSetCurrentScope("clickscope", true, true);
325325 tryCompare(dashContentList, "currentIndex", 1)