on xenial help sign in
Fix infinite loop in test

Make sure we close the preview before wanting to swipe the dash

commit16a1e83ad1490ba02db29ac431dec2c2a1e4db09 authorAlbert Astals <albert.astals@canonical.com> dateWed 19 Mar 2014, 11:48 (13 years ago) parent67768f9
1 file changed+3−3
tests/qmltests/tst_Shell.qml+3−3
tests/qmltests/tst_Shell.qml+3−3
@@ -103,13 +103,13 @@ Item {
103103 // kill all (fake) running apps
104104 killApps(ApplicationManager);
105105
106+ var dashContent = findChild(shell, "dashContent");
107+ dashContent.previewOpen = false;
108+
106109 var dashHome = findChild(shell, "clickscope loader");
107110 swipeUntilScopeViewIsReached(dashHome);
108111
109112 hideIndicators();
110−
111− var dashContent = findChild(shell, "dashContent");
112− dashContent.previewOpen = false;
113113 }
114114
115115 function killApps(apps) {