@@ -2178,6 +2178,11 @@ Rectangle {
21782178 shell.usageScenario = "desktop";
21792179 GSettingsController.setAutohideLauncher(!data.launcherLocked);
21802180 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);
21812186
21822187 var launcher = findChild(shell, "launcher");
21832188 var launcherPanel = findChild(launcher, "launcherPanel");