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

Embedded confirm tests #4249

Merged
merged 9 commits into from
Nov 14, 2024
Merged

Embedded confirm tests #4249

merged 9 commits into from
Nov 14, 2024

Conversation

porter-stripe
Copy link
Collaborator

@porter-stripe porter-stripe commented Nov 12, 2024

Summary

  • Adds more confirm UI tests for embedded

Motivation

  • Embedded

Testing

  • CI!

Changelog

N/A

@porter-stripe porter-stripe marked this pull request as ready for review November 12, 2024 22:31
@porter-stripe porter-stripe requested review from a team as code owners November 12, 2024 22:31
Comment on lines 559 to 560
XCTAssertTrue(app.buttons["Checkout"].isEnabled)
app.buttons["Checkout"].waitForExistenceAndTap()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: probably should:

  1. wait for existence
  2. check if isEnabled
  3. tap
    (seems to be copied to multiple tests)

Comment on lines 689 to 690
let payButton = app.buttons["Confirm"]
payButton.waitForExistenceAndTap()
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit:
app.buttons["Confirm"].waitForExistenceAndTap()

Comment on lines 721 to 722
let successText = app.staticTexts["Success!"]
XCTAssertTrue(successText.waitForExistence(timeout: 10.0))
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit:
XCTAssertTrue(app.staticTexts["Success!"].waitForExistence(timeout: 10.0))

@porter-stripe porter-stripe enabled auto-merge (squash) November 14, 2024 17:12
@porter-stripe porter-stripe merged commit edfc073 into master Nov 14, 2024
6 checks passed
@porter-stripe porter-stripe deleted the porter/embedded-confirm-tests branch November 14, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants