diff --git a/Example/CreativeUITest/CreativeUITest.swift b/Example/CreativeUITest/CreativeUITest.swift index 0a1dc6c..6ce0b52 100644 --- a/Example/CreativeUITest/CreativeUITest.swift +++ b/Example/CreativeUITest/CreativeUITest.swift @@ -34,7 +34,9 @@ final class CreativeUITest: XCTestCase, BaseXCTestCase { .tapOnPushMeToCreative() .addDelay(seconds: 4) - CreativePage.tapOnCloseCreative() + CreativePage + .tapOnCloseCreative() + .addDelay() HomePage.verifyPushMeToCreativeIsHittable() } diff --git a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift index 58cbb3a..6d1b14a 100644 --- a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift +++ b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift @@ -57,6 +57,6 @@ extension BaseXCTestCase { var canLaunchExternalApps: Bool { ProcessInfo .processInfo - .environment["COM_ATTENTIVE_EXAMPLE_HOST"] == "local" + .environment["COM_ATTENTIVE_EXAMPLE_HOST"] != "device_farm" } }