Skip to content

Commit

Permalink
Wait for the values that might change
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Aug 1, 2024
1 parent 57d218c commit 48e239a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/UITests/TestAppUITests/LifecycleHandlerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ final class LifecycleHandlerTests: XCTestCase {
XCTAssertTrue(app.wait(for: .runningForeground, timeout: 2.0))

XCTAssert(app.staticTexts["WillFinishLaunchingWithOptions: 1"].waitForExistence(timeout: 2))
XCTAssert(app.staticTexts["SceneWillEnterForeground: 2"].exists)
XCTAssert(app.staticTexts["SceneDidBecomeActive: 2"].exists)
XCTAssert(app.staticTexts["SceneWillEnterForeground: 2"].waitForExistence(timeout: 2))
XCTAssert(app.staticTexts["SceneDidBecomeActive: 2"].waitForExistence(timeout: 2))
XCTAssert(app.staticTexts["SceneWillResignActive: 1"].exists)
XCTAssert(app.staticTexts["SceneDidEnterBackground: 1"].exists)
XCTAssert(app.staticTexts["ApplicationWillTerminate: 0"].exists)
Expand Down

0 comments on commit 48e239a

Please sign in to comment.