Skip to content

Commit 1abb3db

Browse files
davidme-stripeericzhang-stripe
authored andcommitted
Fix Apple Pay test
1 parent 24dbf8c commit 1abb3db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Example/PaymentSheet Example/PaymentSheetUITest/EmbeddedUITest.swift

+3
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,10 @@ class EmbeddedUITests: PaymentSheetUITestCase {
667667
app.buttons["Present embedded payment element"].waitForExistenceAndTap()
668668

669669
app.buttons["Apple Pay"].waitForExistenceAndTap()
670+
app.swipeUp() // scroll to see the checkout button
671+
XCTAssertTrue(app.buttons["Checkout"].waitForExistence(timeout: 10))
670672
app.buttons["Checkout"].waitForExistenceAndTap()
673+
XCTAssertTrue(app.buttons["Checkout"].isEnabled)
671674
payWithApplePay()
672675
XCTAssertTrue(app.staticTexts["Success!"].waitForExistence(timeout: 10))
673676

0 commit comments

Comments
 (0)