Skip to content

Commit

Permalink
Update test setup string to match existing accessibility labels
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmith-attentive committed Jan 16, 2024
1 parent 5f933be commit 145dffd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Example/CreativeUITest/CreativeUITest.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ - (void)testLoadCreative_clickClose_closesCreative {
[app.buttons[@"Push me for Creative!"] tap];

// Close the creative
XCTAssertTrue([app.webViews.buttons[@"close"] waitForExistenceWithTimeout:5.0]);
[app.webViews.buttons[@"close"] tap];
XCTAssertTrue([app.webViews.buttons[@"Dismiss this popup"] waitForExistenceWithTimeout:5.0]);
[app.webViews.buttons[@"Dismiss this popup"] tap];

// Assert that the creative is closed
XCTAssertTrue([app.buttons[@"Push me for Creative!"] waitForExistenceWithTimeout:5.0]);
Expand Down Expand Up @@ -79,7 +79,7 @@ - (void)testLoadCreative_fillOutFormAndSubmit_launchesSmsAppWithPrePopulatedText
XCTAssertTrue([smsApp.textFields[@"Message"] waitForExistenceWithTimeout:5.0]);
XCTAssertTrue([smsApp.textFields[@"Message"].value containsString:@"Send this text to subscribe to recurring automated personalized marketing alerts (e.g. cart reminders) from Attentive Mobile Apps Test"]);
}
}
}


- (void)testLoadCreative_clickPrivacyLink_opensPrivacyPageInWebApp {
Expand All @@ -101,7 +101,7 @@ - (void)testLoadCreative_inDebugMode_showsDebugMessage {
[app.buttons[@"Push me for Creative!"] tap];

// Verify debug page shows
XCTAssertTrue([app.staticTexts[@"Debug output JSON:"] waitForExistenceWithTimeout:5.0]);
XCTAssertTrue([app.staticTexts[@"Debug output JSON"] waitForExistenceWithTimeout:5.0]);
}


Expand Down

0 comments on commit 145dffd

Please sign in to comment.