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

Add expectation when checking email text field value #3572

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

jotaemepereira
Copy link
Collaborator

@jotaemepereira jotaemepereira commented Nov 19, 2024

Task/Issue URL: https://app.asana.com/0/1204006570077678/1208793837278290/f
Tech Design URL:
CC:

Description:
The testCrendentialsAreAutoFilledInFireWindows failed on macOS 15.

Checking the logs, the problem was that there was a slight delay when the autofill credentials email is tapped and when it is loaded into the web view text field; given that we do not wait and check immediately, it could sometimes fail.

I’ve added an expectation, so we will now wait for the email to appear.

Steps to test this PR:

  1. Select the UI test target
  2. Run the testCrendentialsAreAutoFilledInFireWindows test

Definition of Done:

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

Copy link
Contributor

@alessandroboron alessandroboron left a comment

Choose a reason for hiding this comment

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

Thank for the fix @jotaemepereira.

We should probably start building functions that we can re-use at some point because it’s pretty common to wait for XCUIElement to appear or have a certain value. In that way we can re-use them across the tests.

@jotaemepereira
Copy link
Collaborator Author

Thank for the fix @jotaemepereira.

We should probably start building functions that we can re-use at some point because it’s pretty common to wait for XCUIElement to appear or have a certain value. In that way we can re-use them across the tests.

Good call. I will move things to utilities in my current project.

@jotaemepereira jotaemepereira merged commit 9587487 into main Nov 19, 2024
26 of 27 checks passed
@jotaemepereira jotaemepereira deleted the juan/fix-flakiness-fire-window-ui-test branch November 19, 2024 16:28
samsymons added a commit that referenced this pull request Nov 21, 2024
…g-error

# By Anka (5) and others
# Via GitHub (5) and Dominik Kapusta (1)
* main: (28 commits)
  Add attemptCount and maxAttempts to broker config (#3533)
  Hide continue setup cards after 1 week (#3471)
  Add expectation when checking email text field value (#3572)
  [macos] adding support for message bridge (#3558)
  Update PIR test runner (#3570)
  Add support for controlling sections visibility on HTML New Tab Page (#3551)
  Bump version to 1.115.0 (311)
  macOS 13/14 UI test compilation fix (#3569)
  macOS 13/14 UI test compilation fix (#3569)
  Fix bug where bookmarks bar prompt does not hide bar (#3553)
  Add OS version to download fail pixel (#3568)
  Remove get_tasks_in_last_internal_release (#3566)
  Bump version to 1.115.0 (310)
  Update skip-release check
  Update fastlane plugin to 0.11.6
  Bump ddg-apple-automation version for bugfix (#3565)
  PIR E2E tests GitHub actions (#3528)
  Update autoconsent to v11.5.0 (#3561)
  Bump version to 1.115.0 (309)
  Set marketing version to 1.115.0
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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