Skip to content

Commit

Permalink
Update UI Tests for #106
Browse files Browse the repository at this point in the history
  • Loading branch information
nriedman committed Nov 26, 2024
1 parent 8eb224a commit 0711bbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ENGAGEHFUITests/HeartHealth/HeartHealthUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,23 +277,23 @@ extension XCUIApplication {
}

fileprivate func testEmptySymptomScores() {
XCTAssert(buttons["Symptoms"].waitForExistence(timeout: 0.5))
buttons["Symptoms"].tap()
XCTAssert(buttons["Symptoms"].firstMatch.waitForExistence(timeout: 0.5))
buttons["Symptoms"].firstMatch.tap()

let symptomTypes = [
"Overall",
"Physical Limits",
"Social Limits",
"Quality of Life",
"Specific Symptoms",
"Symptom Frequency",
"Dizziness"
]
let symptomLabels = [
"Overall",
"Physical",
"Social",
"Quality",
"Specific",
"Symptoms",
"Dizziness"
]

Expand All @@ -306,8 +306,8 @@ extension XCUIApplication {
XCTAssert(buttons["\(symptomTypes[idx]) Score, Symptoms Picker Chevron"].waitForExistence(timeout: 0.5))
images["Symptoms Picker Chevron"].tap()

XCTAssert(buttons["\(symptomLabels[nextIdx])"].waitForExistence(timeout: 0.5))
buttons["\(symptomLabels[nextIdx])"].tap()
XCTAssert(buttons["\(symptomLabels[nextIdx])"].firstMatch.waitForExistence(timeout: 0.5))
buttons["\(symptomLabels[nextIdx])"].firstMatch.tap()

testEmptyForSpecificType(scoreType: symptomTypes[nextIdx])
}
Expand Down

0 comments on commit 0711bbd

Please sign in to comment.