Skip to content

Commit

Permalink
update testStart_withValidRequest_firesDelegates to account for chang…
Browse files Browse the repository at this point in the history
…ing text (#1461)
  • Loading branch information
jaxdesmarais authored Nov 12, 2024
1 parent 5ecb18d commit 41c4fa1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ final class PayPalMessaging_Success_UITests: XCTestCase {
func testStart_withValidRequest_firesDelegates() {
XCTAssertTrue(app.buttons["DELEGATE: didAppear fired"].waitForExistence(timeout: 30))

let expectedButtonText = "PayPal - Pay monthly for purchases of $199-$10,000. Learn more"
waitForElementToBeHittable(app.buttons[expectedButtonText])
app.buttons[expectedButtonText].tap()
let expectedButtonTextPredicate = NSPredicate(format: "label CONTAINS[c] 'Pay monthly for purchases of'")
let button = app.buttons.containing(expectedButtonTextPredicate)
waitForElementToBeHittable(button.element)
button.element.tap()
sleep(2)

app.buttons["PayPal learn more modal close"].tap()
Expand Down

0 comments on commit 41c4fa1

Please sign in to comment.