@@ -1640,5 +1640,17 @@ Rectangle {
16401640 tryCompare(dialogLoader, "item", null);
16411641 compare(window.activeFocusItem, surfaceItem);
16421642 }
1643+
1644+ function test_tutorialDisabledWithNoTouchscreen() {
1645+ loadShell("desktop");
1646+ usageModeSelector.selectWindowed();
1647+
1648+ MockInputDeviceBackend.addMockDevice("/touchscreen", InputInfo.TouchScreen);
1649+ var tutorial = findChild(shell, "tutorial");
1650+ tryCompare(tutorial, "enabled", true);
1651+
1652+ MockInputDeviceBackend.removeDevice("/touchscreen");
1653+ tryCompare(tutorial, "enabled", false);
1654+ }
16431655 }
16441656}