Skip to content

Commit 3a82f9c

Browse files
maximise mac screen
1 parent 2a1955a commit 3a82f9c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/test/java/io/openliberty/tools/intellij/it/UIBotTestUtils.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public static void closeLibertyToolWindow(RemoteRobot remoteRobot) {
442442
*/
443443
public static void openProjectView(RemoteRobot remoteRobot) {
444444
// maximize windows os intellij ide to avoid failures accessing menu
445-
if (remoteRobot.isWin()) {
445+
if (remoteRobot.isWin() || remoteRobot.isMac()) {
446446
maximizeWindow(remoteRobot);
447447
}
448448
TestUtils.printTrace(TestUtils.TraceSevLevel.INFO, "UIBotTestUtils.openProjectView Entry");
@@ -2855,7 +2855,12 @@ public static void rightClickCloseOnFileTab(RemoteRobot remoteRobot, String file
28552855
public static void maximizeWindow(RemoteRobot remoteRobot) {
28562856
if (!isFullScreen(remoteRobot)) {
28572857
Keyboard keyboard = new Keyboard(remoteRobot);
2858-
keyboard.hotKey(VK_WINDOWS, VK_UP);
2858+
if (remoteRobot.isWin()) {
2859+
keyboard.hotKey(VK_WINDOWS, VK_UP);
2860+
} else {
2861+
// macOS fullscreen shortcut: Command + Control + F
2862+
keyboard.hotKey(VK_META, VK_CONTROL, VK_F);
2863+
}
28592864
keyboard.enter();
28602865
}
28612866
}

0 commit comments

Comments
 (0)