@@ -1142,16 +1142,13 @@ Rectangle {
1143 function test_greeterLoginsAutomaticallyWhenNoPasswordSet() {
1143 function test_greeterLoginsAutomaticallyWhenNoPasswordSet() {
1144 loadShell("phone");
1144 loadShell("phone");
1145− swipeAwayGreeter();
1147− sessionSpy.clear();
1148− verify(sessionSpy.valid);
1152 var greeter = findChild(shell, "greeter");
1146 var greeter = findChild(shell, "greeter");
1153 verify(!greeter.locked);
1147 verify(!greeter.locked);
1154− verify(sessionSpy.count > 0);
1148+ compare(sessionSpy.count, 0);
1150+ swipeAwayGreeter();
1151+ compare(sessionSpy.count, 1);
1157 function test_fullscreen() {
1154 function test_fullscreen() {
@@ -2189,11 +2186,6 @@ Rectangle {
2189 shell.usageScenario = "desktop";
2186 shell.usageScenario = "desktop";
2190 GSettingsController.setAutohideLauncher(!data.launcherLocked);
2187 GSettingsController.setAutohideLauncher(!data.launcherLocked);
2191 waitForRendering(shell);
2188 waitForRendering(shell);
2192− // Not sure why 2 but it's the number of times
2193− // it triggers at this time and we need to wait
2194− // for them otherwise a sessionStarted signal will
2195− // hide the launcher and make the test fail
2196− tryCompare(sessionSpy, "count", 2);
2198 var launcher = findChild(shell, "launcher");
2190 var launcher = findChild(shell, "launcher");
2199 var launcherPanel = findChild(launcher, "launcherPanel");
2191 var launcherPanel = findChild(launcher, "launcherPanel");