on xenial help sign in
test: make sure the search indicator hides when an app has focus.

Approved by PS Jenkins bot, Michael Zanetti.

commit97f9de8603c20cec46254a5483e7a71d5ba34f5d authorOmer Akram <om26er@ubuntu.com> dateTue 5 Nov 2013, 17:39 (13 years ago) parent71e8dd42a08cb8
2 files changed+24
tests/qmltests/Dash/Apps/tst_RunningApplicationsGrid.qml+1 tests/qmltests/tst_Shell.qml+23
tests/qmltests/Dash/Apps/tst_RunningApplicationsGrid.qml+1
@@ -226,6 +226,7 @@ Item {
226226 verify(fakeRunningAppsModel.contains("calendar"))
227227
228228 mouseClick(calendarTileCloseButton, calendarTileCloseButton.width/2, calendarTileCloseButton.height/2)
229+ wait(0) // spin event loop to start any pending animation
229230
230231 verify(!fakeRunningAppsModel.contains("calendar"))
231232
tests/qmltests/tst_Shell.qml+23
@@ -488,5 +488,28 @@ Item {
488488 var dash = findChild(shell, "dash");
489489 tryCompare(dash, "shown", data.expectedShown);
490490 }
491+
492+ function test_searchIndicatorHidesOnAppFocus() {
493+ var searchIndicator = findChild(shell, "container")
494+ tryCompare(searchIndicator, "opacity", 1)
495+ dragLauncherIntoView();
496+
497+ // Launch an app from the launcher
498+ tapOnAppIconInLauncher();
499+ waitUntilApplicationWindowIsFullyVisible();
500+
501+ tryCompare(searchIndicator, "opacity", 0);
502+ }
503+
504+ function test_searchIndicatorHidesOnGreeterShown() {
505+ var searchIndicator = findChild(shell, "container")
506+ var greeter = findChild(shell, "greeter");
507+
508+ tryCompare(searchIndicator, "opacity", 1)
509+
510+ greeter.show()
511+ tryCompare(greeter, "shown", true)
512+ tryCompare(searchIndicator, "opacity", 0)
513+ }
491514 }
492515}