@@ -3218,6 +3218,8 @@ Rectangle {
32183218 var appDelegate = startApplication("gmail-webapp");
32193219 var appDelegate2 = startApplication("dialer-app");
32203220
3221+ tryCompare(appDelegate2.surface, "activeFocus", true);
3222+
32213223 var maximizeButton = findChild(appDelegate2, "maximizeWindowButton");
32223224 mouseClick(maximizeButton);
32233225 tryCompare(appDelegate2, "state", "maximized");
@@ -3242,7 +3244,7 @@ Rectangle {
32423244 if (data.showSpread) {
32433245 tryCompare(stage, "spreadShown", true);
32443246 }
3245− tryCompareFunction(function() { return menuBarLoader.active === false; }, true);
3247+ tryCompare(panelMenuItem, "__popup", null);
32463248 keyRelease(Qt.Key_Alt)
32473249
32483250 tryCompare(appDelegate.surface, "activeFocus", true);