Skip to content

Commit 55b5eec

Browse files
davidme-stripeericzhang-stripe
authored andcommitted
Fix Apple Pay test
1 parent 3628360 commit 55b5eec

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
@@ -672,7 +672,10 @@ class EmbeddedUITests: PaymentSheetUITestCase {
672672
app.buttons["Present embedded payment element"].waitForExistenceAndTap()
673673

674674
app.buttons["Apple Pay"].waitForExistenceAndTap()
675+
app.swipeUp() // scroll to see the checkout button
676+
XCTAssertTrue(app.buttons["Checkout"].waitForExistence(timeout: 10))
675677
app.buttons["Checkout"].waitForExistenceAndTap()
678+
XCTAssertTrue(app.buttons["Checkout"].isEnabled)
676679
payWithApplePay()
677680
XCTAssertTrue(app.staticTexts["Success!"].waitForExistence(timeout: 10))
678681

0 commit comments

Comments
 (0)