Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PayPal Messaging UI Test #1461

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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