Skip to content

Commit

Permalink
Merge pull request #4552 from wix/fix-device-lock-issue-xcuitest
Browse files Browse the repository at this point in the history
fix(iOS): active app under test on XCUITest interaction.
  • Loading branch information
asafkorem authored Aug 15, 2024
2 parents abfa201 + 919b06d commit bdc4cd4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ final class DetoxXCUITestRunner: XCTestCase {
}

func testRunner() throws {
let appUnderTest = try XCUIApplication.appUnderTest()
appUnderTest.activate()

let params = try InvocationParamsReader.readParams()

let predicateHandler = PredicateHandler(
springboardApp: XCUIApplication.springboard,
appUnderTest: try XCUIApplication.appUnderTest()
appUnderTest: appUnderTest
)

let element = predicateHandler.findElement(using: params)
Expand Down

0 comments on commit bdc4cd4

Please sign in to comment.