on xenial help sign in
Add test
commit4449c5eeddb0fc7fab1d2f781b2b375704bc2203 authorMichael Terry <michael.terry@canonical.com> dateWed 17 Feb 2016, 09:48 (11 years ago) parent0825b82
1 file changed+9
tests/qmltests/Greeter/tst_NarrowView.qml+9
tests/qmltests/Greeter/tst_NarrowView.qml+9
@@ -518,5 +518,14 @@ Item {
518518 tryCompare(coverPage, "shown", false);
519519 tryCompare(coverPage, "showProgress", 0);
520520 }
521+
522+ // Make sure that if user has a mouse, they can still get rid of cover page
523+ function test_mouseClickHidesCoverPage() {
524+ var coverPage = findChild(view, "coverPage");
525+
526+ verify(coverPage.shown);
527+ mouseClick(coverPage, coverPage.width/2, coverPage.height - units.gu(2));
528+ verify(!coverPage.shown);
529+ }
521530 }
522531}