Skip to content

Commit

Permalink
please work
Browse files Browse the repository at this point in the history
  • Loading branch information
ninaboord committed Mar 14, 2024
1 parent 7bb0d2b commit 8fe6ece
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Intake/Home.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct StartButton: View {
.padding()
.background(Color.blue)
.cornerRadius(10)
}
}.accessibilityIdentifier("Start")
}
}

Expand Down
10 changes: 7 additions & 3 deletions IntakeUITests/NinasTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ final class NinasTests: XCTestCase {
let app = XCUIApplication()
app.launchArguments = ["--disableFirebase", "--skipOnboarding", "--testPatient", "--skipToScrollable"]
let startButton = app.buttons["Start"]
let nextToScrollableView = app.buttons["Next"]
startButton.tap()
nextToScrollableView.tap()
let isStartButtonExist = startButton.waitForExistence(timeout: 5)
XCTAssertTrue(isStartButtonExist, "Start button does not exist")
let next = app.buttons["Next"]
if isStartButtonExist {
startButton.tap()
}
next.tap()
XCTAssertTrue(app.staticTexts["Gonzalo Alejandro Dueñas"].waitForExistence(timeout: 5))
XCTAssertTrue(app.staticTexts["1958-02-06"].waitForExistence(timeout: 5))
XCTAssertTrue(app.staticTexts["66"].waitForExistence(timeout: 5))
Expand Down

0 comments on commit 8fe6ece

Please sign in to comment.