@@ -65,6 +65,7 @@ Rectangle {
6565 property int shellOrientation: Qt.PortraitOrientation
6666 property int nativeOrientation: Qt.PortraitOrientation
6767 property int primaryOrientation: Qt.PortraitOrientation
68+ property string mode: "full-greeter"
6869
6970 state: "phone"
7071 states: [
@@ -114,6 +115,7 @@ Rectangle {
114115 native_: shellLoader.nativeOrientation
115116 primary: shellLoader.primaryOrientation
116117 }
118+ mode: shellLoader.mode
117119 Component.onDestruction: {
118120 shellLoader.itemDestroyed = true;
119121 }
@@ -508,6 +510,7 @@ Rectangle {
508510 AccountsService.demoEdges = false;
509511 AccountsService.demoEdgesCompleted = [];
510512 Wizard.System.wizardEnabled = false;
513+ shellLoader.mode = "full-greeter";
511514
512515 // kill all (fake) running apps
513516 killApps();
@@ -2454,5 +2457,22 @@ Rectangle {
24542457
24552458 tryCompare(appDelegate, "state", "normal");
24562459 }
2460+
2461+ function test_fullShellModeHasNoInitialGreeter() {
2462+ setLightDMMockMode("single-pin");
2463+ shellLoader.mode = "full-shell";
2464+ loadShell("phone");
2465+ shell.usageScenario = "phone";
2466+ waitForRendering(shell);
2467+
2468+ var greeter = findChild(shell, "greeter");
2469+ verify(!greeter.shown);
2470+ verify(!greeter.locked);
2471+
2472+ showGreeter();
2473+
2474+ verify(greeter.shown);
2475+ verify(greeter.locked);
2476+ }
24572477 }
24582478}