@@ -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}