on xenial help sign in
Stabilize test_superTabToCycleLauncher
9be9815Albert Astals Cid
tests/qmltests/tst_Shell.qml+5
@@ -2178,6 +2178,11 @@ Rectangle {
2178 shell.usageScenario = "desktop";
2178 shell.usageScenario = "desktop";
2179 GSettingsController.setAutohideLauncher(!data.launcherLocked);
2179 GSettingsController.setAutohideLauncher(!data.launcherLocked);
2180 waitForRendering(shell);
2180 waitForRendering(shell);
2181+ // Not sure why 2 but it's the number of times
2182+ // it triggers at this time and we need to wait
2183+ // for them otherwise a sessionStarted signal will
2184+ // hide the launcher and make the test fail
2185+ tryCompare(sessionSpy, "count", 2);
2181
2186
2182 var launcher = findChild(shell, "launcher");
2187 var launcher = findChild(shell, "launcher");
2183 var launcherPanel = findChild(launcher, "launcherPanel");
2188 var launcherPanel = findChild(launcher, "launcherPanel");