From 145dffde26be100adf855c041d9e9c077ae525c0 Mon Sep 17 00:00:00 2001 From: Reagan Smith Date: Tue, 16 Jan 2024 13:37:49 -0500 Subject: [PATCH] Update test setup string to match existing accessibility labels --- Example/CreativeUITest/CreativeUITest.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Example/CreativeUITest/CreativeUITest.m b/Example/CreativeUITest/CreativeUITest.m index 9b61853..c720754 100644 --- a/Example/CreativeUITest/CreativeUITest.m +++ b/Example/CreativeUITest/CreativeUITest.m @@ -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]); @@ -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 { @@ -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]); }