on xenial help sign in
And fix the tutorial to even notice when the spread is shown
commit4abe6ce448c194249c34603194ad13cd1988ebd8 authorMichael Terry <michael.terry@canonical.com> dateTue 29 Mar 2016, 09:29 (11 years ago) parent5a00d6a
2 files changed+19
qml/Stages/DesktopStage.qml+3 tests/qmltests/Tutorial/tst_Tutorial.qml+16
qml/Stages/DesktopStage.qml+3
@@ -36,6 +36,9 @@ AbstractStage {
3636 }
3737 }
3838
39+ // Used by TutorialRight
40+ property bool spreadShown: spread.state == "altTab"
41+
3942 mainApp: ApplicationManager.focusedApplicationId
4043 ? ApplicationManager.findApplication(ApplicationManager.focusedApplicationId)
4144 : null
tests/qmltests/Tutorial/tst_Tutorial.qml+16
@@ -764,6 +764,22 @@ Rectangle {
764764 tryCompare(tutorialRightLoader, "shown", true);
765765 }
766766
767+ function test_desktopTutorialRightFinish() {
768+ loadShell("desktop");
769+
770+ var tutorialRight = findChild(shell, "tutorialRight");
771+ ApplicationManager.startApplication("dialer-app");
772+ ApplicationManager.startApplication("camera-app");
773+ tryCompare(tutorialRight, "shown", true);
774+
775+ var stage = findChild(shell, "stage");
776+ mouseMove(shell, shell.width, shell.height / 2);
777+ stage.pushRightEdge(units.gu(8));
778+ tryCompare(tutorialRight, "shown", false);
779+
780+ tryCompare(AccountsService, "demoEdges", false);
781+ }
782+
767783 function test_oskDoesNotHideTutorial() {
768784 var tutorialLeft = findChild(shell, "tutorialLeft");
769785 verify(tutorialLeft.shown);