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 11, 2024
1 parent a868f13 commit b9788b6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ENGAGEHFUITests/HomeViewUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class HomeViewUITests: XCTestCase {
continueAfterFailure = false

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

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

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

// 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()
}
// Firebase not disabled, so make sure the account button appears and is hittable
XCTAssert(app.buttons["Your Account"].exists && app.buttons["Your Account"].isHittable)
app.buttons["Your Account"].tap()
}
}

0 comments on commit b9788b6

Please sign in to comment.