Skip to content

Commit

Permalink
sleep for 1 second to allow label animation to finish testRemovalOfSa…
Browse files Browse the repository at this point in the history
…vedPaymentMethods_verticalMode
  • Loading branch information
joyceqin-stripe committed Dec 6, 2024
1 parent eaae456 commit 7022a11
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ class PaymentSheetVerticalUITests: PaymentSheetUITestCase {
app.buttons["Done"].waitForExistenceAndTap()
// Tap out of FlowController
app.tapCoordinate(at: .init(x: 200, y: 100))

// Sleep to allow animation to finish
sleep(1)
// The next card should be selected now
XCTAssertEqual(app.buttons["Payment method"].label, "•••• 1001, card")

Expand Down

0 comments on commit 7022a11

Please sign in to comment.