From d85155a78fc16eb77dde10adec473674a43ab3c2 Mon Sep 17 00:00:00 2001 From: Vladimir Espinola Date: Fri, 21 Jun 2024 11:48:15 -0400 Subject: [PATCH] fixed AWS environment check --- Example/CreativeUITest/CreativeUITest.swift | 2 +- Example/CreativeUITest/Protocols/BaseXCTestCase.swift | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Example/CreativeUITest/CreativeUITest.swift b/Example/CreativeUITest/CreativeUITest.swift index 183f19a..fa1ea92 100644 --- a/Example/CreativeUITest/CreativeUITest.swift +++ b/Example/CreativeUITest/CreativeUITest.swift @@ -54,7 +54,7 @@ final class CreativeUITest: XCTestCase, BaseXCTestCase { .addDelay(seconds: 3) guard canLaunchExternalApps else { return } - + SMSPage .verifyPrefilledMessage( message: "Send this text to subscribe to recurring automated personalized marketing alerts (e.g. cart reminders) from Attentive Mobile Apps Test" diff --git a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift index ee340de..7b8299b 100644 --- a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift +++ b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift @@ -47,7 +47,6 @@ extension BaseXCTestCase { "COM_ATTENTIVE_EXAMPLE_DOMAIN" : "mobileapps", "COM_ATTENTIVE_EXAMPLE_MODE" : mode.rawValue, "COM_ATTENTIVE_EXAMPLE_IS_UI_TEST" : "YES", - "COM_ATTENTIVE_EXAMPLE_HOST" : "local" ] if !extras.isEmpty { @@ -61,6 +60,6 @@ extension BaseXCTestCase { var canLaunchExternalApps: Bool { ProcessInfo .processInfo - .environment["COM_ATTENTIVE_EXAMPLE_HOST"] == "local" + .environment["COM_ATTENTIVE_EXAMPLE_HOST"] == nil } }