Skip to content

Commit b4541a8

Browse files
davidme-stripeericzhang-stripe
authored andcommitted
Fix Apple Pay test and testSwiftUI
1 parent 8d0c2e3 commit b4541a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Example/PaymentSheet Example/PaymentSheetUITest/EmbeddedUITest.swift

+4
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

@@ -1018,6 +1021,7 @@ class EmbeddedUITests: PaymentSheetUITestCase {
10181021
XCTAssertTrue(app.staticTexts["Add card"].waitForExistence(timeout: 10))
10191022
continueButton.tap()
10201023

1024+
app.swipeUp() // scroll to see the confirm button
10211025
let confirmButton = app.buttons["Confirm Payment"]
10221026
XCTAssertTrue(confirmButton.waitForExistenceAndTap())
10231027

0 commit comments

Comments
 (0)