on xenial help sign in
stabilize the tests a bit
b7c3406Lukáš Tinkl
tests/qmltests/Wizard/tst_Wizard.qml+2−2
@@ -200,7 +200,6 @@ Item {
200 var tzList = findChild(page, "tzList");
200 var tzList = findChild(page, "tzList");
201 verify(tzList);
201 verify(tzList);
202 waitForRendering(tzList);
202 waitForRendering(tzList);
203− tzList.currentIndex = 0;
204 page.selectedTimeZone = "Pacific/Honolulu";
203 page.selectedTimeZone = "Pacific/Honolulu";
205 tap(findChild(page, "forwardButton"));
204 tap(findChild(page, "forwardButton"));
206
205
@@ -211,7 +210,8 @@ Item {
211 tap(findChild(page, "passInput"));
210 tap(findChild(page, "passInput"));
212 typeString("12345678");
211 typeString("12345678");
213 var pass2Input = findChild(page, "pass2Input");
212 var pass2Input = findChild(page, "pass2Input");
214− verify(pass2Input); // give it a bit of time to finish the scroll-into-view animation
213+ // give it a bit of time to finish the scroll-into-view animation
214+ tryCompareFunction(function() { return pass2Input !== null; }, true);
215 tap(pass2Input);
215 tap(pass2Input);
216 typeString("12345678");
216 typeString("12345678");
217 tap(findChild(page, "forwardButton"));
217 tap(findChild(page, "forwardButton"));