on xenial help sign in
add a test
commit31c13929020119b470795aa1f34eb22e5f3afd25 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 27 Feb 2017, 14:37 (10 years ago) parente3f079b
1 file changed+18
tests/qmltests/Stage/tst_DesktopStage.qml+18
tests/qmltests/Stage/tst_DesktopStage.qml+18
@@ -1013,5 +1013,23 @@ Item {
10131013 expectFail("", "Hovering the window controls should be ignored when the menu is open");
10141014 tryCompare(closeButton, "containsMouse", true);
10151015 }
1016+
1017+ function test_windowControlsTouchInteractionWithMenu() {
1018+ var appDelegate = startApplication("gmail-webapp");
1019+
1020+ var wd = findChild(appDelegate, "appWindowDecoration");
1021+ var maxButton = findChild(wd, "maximizeWindowButton");
1022+ var menuBarLoader = findChild(wd, "menuBarLoader");
1023+ var menuNav = findInvisibleChild(menuBarLoader, "d");
1024+
1025+ // make the menubar active and visible, select first item
1026+ menuBarLoader.active = true;
1027+ menuNav.select(0);
1028+ tryCompare(menuBarLoader.item, "visible", true);
1029+
1030+ // verify the maximized button can still be tapped
1031+ tap(maxButton);
1032+ tryCompare(appDelegate, "state", "maximized");
1033+ }
10161034 }
10171035}