Skip to content

Commit

Permalink
test(admissions): add visits search modal test
Browse files Browse the repository at this point in the history
Fixes the end to end test for the is_pregnant flag.

Closes #7815.
  • Loading branch information
jniles committed Nov 30, 2024
1 parent e868419 commit e3be80d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

<!-- determine if patients are pregnant or not -->
<bh-yes-no-radios
id = "patient-is-pregnant"
label="PATIENT_RECORDS.VISITS.IS_PREGNANT"
value="$ctrl.searchQueries.is_pregnant"
name="is_pregnant"
Expand Down
2 changes: 1 addition & 1 deletion test/end-to-end/visits/visits.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class VisitPage {
}

if (options.isPregnant) {
await TU.locator(by.model('$ctrl.searchQueries.is_pregnant')).check();
await components.yesNoRadios.set('yes', 'patient-is-pregnant');
}

// hospitalization
Expand Down

0 comments on commit e3be80d

Please sign in to comment.