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
06efe1dMichael Terry
tests/qmltests/Greeter/tst_WideView.qml+4
@@ -338,6 +338,10 @@ StyledItem {
338 emergencySpy.clear();
338 emergencySpy.clear();
339 LightDMController.reset();
339 LightDMController.reset();
340 LightDM.Sessions.iconSearchDirectories = [testIconDirectory];
340 LightDM.Sessions.iconSearchDirectories = [testIconDirectory];
341+
342+ waitForRendering(view);
343+ var userList = findChild(view, "userList");
344+ tryCompare(userList, "movingInternally", false);
341 }
345 }
342
346
343 function cleanup() {
347 function cleanup() {