Skip to content

Commit 7c40b78

Browse files
committed
test(apple): use installed app for stopped-app alert regression
1 parent 113b88c commit 7c40b78

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+AlertTests.swift‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import XCTest
44
extension RunnerTests {
55
@MainActor
66
func testAlertResolutionDoesNotQueryATerminatedApp() {
7-
let stoppedApp = XCUIApplication(bundleIdentifier: "com.callstack.agentdevice.not-installed")
8-
XCTAssertEqual(stoppedApp.state, .notRunning)
9-
XCTAssertNil(resolveAlert(app: stoppedApp, deadline: Date().addingTimeInterval(1)))
7+
app.terminate()
8+
XCTAssertEqual(app.state, .notRunning)
9+
XCTAssertNil(resolveAlert(app: app, deadline: Date().addingTimeInterval(1)))
1010
}
1111

1212
func testAlertAcceptTreatsOpenAsAffirmative() {

0 commit comments

Comments
 (0)