diff --git a/Example/CreativeUITest/Protocols/BaseXCTestCase.swift b/Example/CreativeUITest/Protocols/BaseXCTestCase.swift index a9bc462..58cbb3a 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"]