on xenial help sign in
add cleanup to kill the app before running next test, add a new test to make sure search indicator is not shown while greeter is visible.
commited02cff397c64ce91fdf0b8feedf67b0c815acff authorOmer Akram <om26er@ubuntu.com> dateFri 25 Oct 2013, 15:59 (13 years ago) parent3c8bc14
1 file changed+12
tests/qmltests/tst_Shell.qml+12
tests/qmltests/tst_Shell.qml+12
@@ -494,6 +494,18 @@ Item {
494494 waitUntilApplicationWindowIsFullyVisible();
495495
496496 tryCompare(searchIndicator, "opacity", 0);
497+ cleanup();
498+ }
499+
500+ function test_searchIndicatorHidesOnGreeterShown() {
501+ var searchIndicator = findChild(shell, "container")
502+ var greeter = findChild(shell, "greeter");
503+
504+ tryCompare(searchIndicator, "opacity", 1)
505+
506+ greeter.show()
507+ tryCompare(greeter, "shown", true)
508+ tryCompare(searchIndicator, "opacity", 0)
497509 }
498510 }
499511}