Skip to content

Commit

Permalink
Update HomeViewUITests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
nriedman committed Apr 7, 2024
1 parent 8a1c723 commit 935a3bf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ENGAGEHFUITests/HomeViewUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HomeViewUITests: XCTestCase {
continueAfterFailure = false

let app = XCUIApplication()
app.launchArguments = ["--skipOnboarding", "--disableFirebase"]
app.launchArguments = ["--skipOnboarding"]
app.launch()
}

Expand All @@ -37,7 +37,10 @@ class HomeViewUITests: XCTestCase {

XCTAssert(app.staticTexts[dateFormatter.string(from: .now)].exists)

// Make sure the account button appears and is hittable
XCTAssert(app.buttons["Your Account"].exists && app.buttons["Your Account"].isHittable)
// If it appears, make sure the account button appears and is hittable
if !(app.launchArguments.contains("--disableFirebase")) {
XCTAssert(app.buttons["Your Account"].exists && app.buttons["Your Account"].isHittable)
app.buttons["Your Account"].tap()
}
}
}

0 comments on commit 935a3bf

Please sign in to comment.