From 12748e63c5f3fc5ae380fdf6e4b68cd788f7be14 Mon Sep 17 00:00:00 2001 From: Vladimir Espinola Date: Wed, 19 Jun 2024 15:16:27 -0400 Subject: [PATCH] updated deleted method to not be executed on device farm --- Example/CreativeUITest/Protocols/BaseXCTestCase.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift index 3b9f2c1..d827525 100644 --- a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift +++ b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift @@ -19,6 +19,8 @@ protocol BaseXCTestCase where Self: XCTestCase { extension BaseXCTestCase { func deleteApp() { + guard canLaunchExternalApps else { return } + let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard") let icon = springboard.icons["Example - Local"]