@@ -31,6 +31,7 @@ import Unity.Indicators 0.1
3131import Unity.Notifications 1.0
3232import Unity.Test 0.1 as UT
3333import Powerd 0.1
34+import Wizard 0.1 as Wizard
3435
3536import "../../qml"
3637
@@ -288,6 +289,7 @@ Rectangle {
288289 setLightDMMockMode("single"); // back to the default value
289290
290291 AccountsService.demoEdges = false;
292+ Wizard.System.wizardEnabled = false;
291293
292294 // kill all (fake) running apps
293295 killApps(ApplicationManager);
@@ -940,6 +942,21 @@ Rectangle {
940942 tryCompare(unlockAllModemsSpy, "count", 1)
941943 }
942944
945+ function test_unlockAllModemsAfterWizard() {
946+ Wizard.System.wizardEnabled = true;
947+ loadShell("phone");
948+
949+ var wizard = findChild(shell, "wizard");
950+ compare(wizard.active, true);
951+ compare(Wizard.System.wizardEnabled, true);
952+ compare(unlockAllModemsSpy.count, 0);
953+
954+ wizard.hide();
955+ tryCompare(wizard, "active", false);
956+ compare(Wizard.System.wizardEnabled, false);
957+ compare(unlockAllModemsSpy.count, 1);
958+ }
959+
943960 function test_tapOnRightEdgeReachesApplicationSurface() {
944961 loadShell("phone");
945962 swipeAwayGreeter();