diff --git a/Example/CreativeUITest/CreativeUITest.swift b/Example/CreativeUITest/CreativeUITest.swift index 8af0c3f..7eaac8e 100644 --- a/Example/CreativeUITest/CreativeUITest.swift +++ b/Example/CreativeUITest/CreativeUITest.swift @@ -32,7 +32,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 d827525..f9aaeb9 100644 --- a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift +++ b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift @@ -48,6 +48,6 @@ extension BaseXCTestCase { var canLaunchExternalApps: Bool { ProcessInfo .processInfo - .environment["COM_ATTENTIVE_EXAMPLE_HOST"] == "local" + .environment["COM_ATTENTIVE_EXAMPLE_HOST"] != "device_farm" } }