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

[UI Tests] Handle "Save Password" prompt from iOS. #1538

Merged
merged 2 commits into from
Nov 6, 2023
Merged

Conversation

pachlava
Copy link
Contributor

@pachlava pachlava commented Nov 2, 2023

Fix

The UI tests weren't executed for a really long time, during which the Save password prompt was introduced in iOS:

Screenshot 2023-11-02 at 23 07 24

The prompt blocked nearly all the tests. This PR adds handling of this prompt (always tapping No).

Test

@pachlava pachlava marked this pull request as draft November 2, 2023 18:21
@wpmobilebot
Copy link
Collaborator

You can test the changes in simplenote-ios from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr1538-c5f6367-018b9190-843b-48d8-b633-a150080ff458 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@@ -3,7 +3,10 @@ import XCTest
class EmailLogin {

class func open() {
app.buttons[UID.Button.logIn].waitForIsHittable()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In some cases, the test might try to tap Log In button while the Save password prompt is still being removed from the screen after tapping No (on this picture, Login button is covered by the prompt):

Screenshot 2023-11-02 at 23 04 34

Waiting for the button to become hittable solves the issue.

@pachlava pachlava marked this pull request as ready for review November 2, 2023 21:14
Comment on lines +44 to +45
"revision" : "5179cb69d58b90761cc713bdee7740c4889d3295",
"version" : "0.4.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just updating XCUITestHelpers to the latest version.

@pachlava pachlava merged commit bddc0bb into trunk Nov 6, 2023
7 checks passed
@pachlava pachlava deleted the fix-ui-tests branch November 6, 2023 07:53
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.

3 participants