Skip to content

Fix swift-button-functional-test - #614

Merged
AkshatG6 merged 1 commit into
mainfrom
gandhiakshat/swift-button-functional-test
Aug 5, 2026
Merged

AkshatG6 merged 1 commit into
mainfrom
gandhiakshat/swift-button-functional-test

Conversation

@AkshatG6

@AkshatG6 AkshatG6 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR fixes the swift-button-functional-test by updating signInForTheFirstTime() to reduce test flakiness.

Key Changes:

  • Explicit .tap() before .typeText(): Guarantees the text field has keyboard focus before attempting to type, which prevents flaky failures.
  • Replaced keyboard UI interactions with \n: Replaced the brittle .keyboards.element.buttons["return"].tap() with a \n character appended to the typeText string. This bypasses the software keyboard UI entirely, which is a common source of test flakiness.
  • String formatting: Updated the apostrophe in returningUserSignInDisclaimerHeaderText.
@AkshatG6
AkshatG6 requested a review from w-goog August 4, 2026 17:19
@w-goog
w-goog force-pushed the gandhiakshat/swift-button-functional-test branch from 51d061d to 8871bc0 Compare August 4, 2026 23:58
@AkshatG6
AkshatG6 merged commit 5df1fbe into main Aug 5, 2026
21 checks passed
@AkshatG6
AkshatG6 deleted the gandhiakshat/swift-button-functional-test branch August 5, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants