on xenial help sign in
Add some safeguards to the WideView test, to avoid the test starting before the UI is ready; hopefully fixes a flaky test
commit06efe1d9dc5ec50fca935b614623b248119da2d4 authorMichael Terry <mike@mterry.name> dateMon 23 Jan 2017, 16:10 (10 years ago) parentb89a529
1 file changed+4
tests/qmltests/Greeter/tst_WideView.qml+4
tests/qmltests/Greeter/tst_WideView.qml+4
@@ -338,6 +338,10 @@ StyledItem {
338338 emergencySpy.clear();
339339 LightDMController.reset();
340340 LightDM.Sessions.iconSearchDirectories = [testIconDirectory];
341+
342+ waitForRendering(view);
343+ var userList = findChild(view, "userList");
344+ tryCompare(userList, "movingInternally", false);
341345 }
342346
343347 function cleanup() {