on xenial help sign in
Fix test_dragPanelToRestoreMaximizedWindow in tst_Shell.qml
commitb74d6f6caf7dd8a64c76f96d8c5e3e5b31bf3340 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateFri 2 Dec 2016, 11:12 (10 years ago) parent8b79bc2
1 file changed+3−1
tests/qmltests/tst_Shell.qml+3−1
tests/qmltests/tst_Shell.qml+3−1
@@ -2717,7 +2717,9 @@ Rectangle {
27172717 var appContainer = findChild(shell, "appContainer");
27182718 var appDelegate = findChild(appContainer, "appDelegate_" + appSurfaceId);
27192719 verify(appDelegate);
2720− appDelegate.maximize();
2720+ var maximizeButton = findChild(appDelegate, "maximizeWindowButton");
2721+ mouseClick(maximizeButton);
2722+
27212723 tryCompare(appDelegate, "state", "maximized");
27222724
27232725 mouseDrag(panel, panel.width/3, panel.height/2, 0, shell.height/3, Qt.LeftButton, Qt.NoModifier, 500);