Skip to content
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

fix: properly handle promise during wait for atom #1187

Merged
merged 5 commits into from
Mar 27, 2020

Conversation

imurchie
Copy link
Contributor

Wait for proper promise, and make it cancellable so we don't get odd reports in the logs.

Also, remove some killAllSimulator calls to speed some things up.

@@ -302,6 +311,7 @@ extensions.waitForAtom = async function waitForAtom (promise) {
// check if there is an alert
if (await this.checkForAlert()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite sure how this is going to work together with auto alert accept setting

@imurchie imurchie merged commit 81041d8 into appium:master Mar 27, 2020
@imurchie imurchie deleted the isaac-atom-wait branch March 27, 2020 12:46
khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
* fix: properly handle promise during wait for atom

* fix: cancel atom promise when alert is found

* try: fix some and try ard

* fix: back to published ard

* remove some unnecessary cap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants