-
Notifications
You must be signed in to change notification settings - Fork 32
Allow the “bash requesting screen access” popup in macOs latest #1482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
anusreelakshmi934
wants to merge
16
commits into
OpenLiberty:main
Choose a base branch
from
anusreelakshmi934:useMacOSLatest
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
16b9107
handleMacOSPermissionPopup method.
anusreelakshmi934 850cc7e
macOS-latest
anusreelakshmi934 4be5826
add AllowPopupTest
anusreelakshmi934 6df111a
use script to bring focus
anusreelakshmi934 524e1ab
move to base class
anusreelakshmi934 c7227cb
copyright added
anusreelakshmi934 43af4b0
Update SingleModMPLSTestCommon.java
anusreelakshmi934 9869123
unused imports removed
anusreelakshmi934 2f1b94a
renamed class to BaseOSUtilities
anusreelakshmi934 f3b9ad1
@TestMethodOrder(MethodOrderer.OrderAnnotation.class) added to base c…
anusreelakshmi934 888047f
Update UIBotTestUtils.java
anusreelakshmi934 fa96fb3
Merge branch 'OpenLiberty:main' into useMacOSLatest
anusreelakshmi934 310dcc7
Merge branch 'OpenLiberty:main' into useMacOSLatest
anusreelakshmi934 3a87d21
Merge branch 'OpenLiberty:main' into useMacOSLatest
anusreelakshmi934 2a1955a
Update UIBotTestUtils.java
anusreelakshmi934 3a82f9c
maximise mac screen
anusreelakshmi934 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/test/java/io/openliberty/tools/intellij/it/BaseOSUtilities.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| /******************************************************************************* | ||
| * Copyright (c) 2025 IBM Corporation. | ||
| * | ||
| * This program and the accompanying materials are made available under the | ||
| * terms of the Eclipse Public License v. 2.0 which is available at | ||
| * http://www.eclipse.org/legal/epl-2.0. | ||
| * | ||
| * SPDX-License-Identifier: EPL-2.0 | ||
| *******************************************************************************/ | ||
| package io.openliberty.tools.intellij.it; | ||
|
|
||
| import com.intellij.remoterobot.RemoteRobot; | ||
| import com.automation.remarks.junit5.Video; | ||
| import org.junit.jupiter.api.*; | ||
| import org.junit.jupiter.api.condition.EnabledOnOs; | ||
| import org.junit.jupiter.api.condition.OS; | ||
|
|
||
| @TestMethodOrder(MethodOrderer.OrderAnnotation.class) | ||
| public class BaseOSUtilities { | ||
|
|
||
| /** | ||
| * URL to display the UI Component hierarchy. This is used to obtain xPath related | ||
| * information to find UI components. | ||
| */ | ||
| public static final String REMOTE_BOT_URL = "http://localhost:8082"; | ||
|
|
||
| /** | ||
| * The remote robot object. | ||
| */ | ||
| public static final RemoteRobot remoteRobot = new RemoteRobot(REMOTE_BOT_URL); | ||
|
|
||
| /** | ||
| * Test to handle macOS permission popup if it appears | ||
| */ | ||
| @Order(1) | ||
| @Test | ||
| @Video | ||
| @EnabledOnOs({OS.MAC}) | ||
| public void AllowPopupTest() { | ||
| UIBotTestUtils.handleMacOSPermissionPopup(remoteRobot); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to cite the source that was used as reference for this "Apple script". You can mention that the appleScript is based off an example provided at https://smartwatermelon.medium.com/automating-macos-security-dialogs-a-tale-of-yak-shaving-and-applescript-759300d6fba9. It would also be good to point to official documentation, like the one you shared here: https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/AutomatetheUserInterface.html - just in case a developer in the future needs to make changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added these references.