File tree 1 file changed +4
-0
lines changed
Example/PaymentSheet Example/PaymentSheetUITest
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -667,7 +667,10 @@ class EmbeddedUITests: PaymentSheetUITestCase {
667
667
app. buttons [ " Present embedded payment element " ] . waitForExistenceAndTap ( )
668
668
669
669
app. buttons [ " Apple Pay " ] . waitForExistenceAndTap ( )
670
+ app. swipeUp ( ) // scroll to see the checkout button
671
+ XCTAssertTrue ( app. buttons [ " Checkout " ] . waitForExistence ( timeout: 10 ) )
670
672
app. buttons [ " Checkout " ] . waitForExistenceAndTap ( )
673
+ XCTAssertTrue ( app. buttons [ " Checkout " ] . isEnabled)
671
674
payWithApplePay ( )
672
675
XCTAssertTrue ( app. staticTexts [ " Success! " ] . waitForExistence ( timeout: 10 ) )
673
676
@@ -1018,6 +1021,7 @@ class EmbeddedUITests: PaymentSheetUITestCase {
1018
1021
XCTAssertTrue ( app. staticTexts [ " Add card " ] . waitForExistence ( timeout: 10 ) )
1019
1022
continueButton. tap ( )
1020
1023
1024
+ app. swipeUp ( ) // scroll to see the confirm button
1021
1025
let confirmButton = app. buttons [ " Confirm Payment " ]
1022
1026
XCTAssertTrue ( confirmButton. waitForExistenceAndTap ( ) )
1023
1027
You can’t perform that action at this time.
0 commit comments