Skip to content

Commit

Permalink
relax label selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Sep 6, 2023
1 parent 54ed7ed commit 4a21a24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { initialState, ManageFacilityState } from "./ManageFacility";

export const getOrgComboBoxElements = () => {
const orgSelectionDiv = screen.getByTestId("org-selection-container");
const orgComboBoxInput = screen.getByLabelText("Organization *");
const orgComboBoxInput = screen.getByLabelText(/organization/i);
const orgComboBoxList = within(orgSelectionDiv).getByTestId(
"combo-box-option-list"
);
Expand All @@ -22,7 +22,7 @@ export const getFacilityComboBoxElements = () => {
const facilitySelectionDiv = screen.getByTestId(
"facility-selection-container"
);
const facilityComboBoxInput = screen.getByLabelText("Testing facility *");
const facilityComboBoxInput = screen.getByLabelText(/testing facility/i);
const facilityComboBoxList = within(facilitySelectionDiv).getByTestId(
"combo-box-option-list"
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const FacilitySelectFilter: React.FC<FacilitySelectFilterProps> = ({
className="desktop:grid-col-4 tablet:grid-col-4 mobile:grid-col-1 margin-top-1em"
>
<ComboBox
name={"Facility"}
name={"Testing facility"}
id={"manage-facility-facility-select"}
options={facilityOptions}
onChange={(val) => onSelectFacility(val)}
Expand Down

0 comments on commit 4a21a24

Please sign in to comment.