Skip to content

Commit

Permalink
increase reliability of e2e (#6137)
Browse files Browse the repository at this point in the history
  • Loading branch information
zdeveloper authored Jul 17, 2023
1 parent 7db812f commit 93f882c
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/04-conduct_test.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe("Conducting a COVID test", () => {
cy.wait("@GetFacilityQueue", {timeout: 20000});

cy.get(queueCard).within(() => {
cy.get('.prime-radios input[value="NEGATIVE"]+label').click();
cy.get('[data-cy="radio-group-option-NEGATIVE"]').click()
});

cy.wait("@EditQueueItem");
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/app/commonComponents/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ const RadioGroup = <T extends string>({
onBlur={onBlur}
{...registrationProps}
/>
<label className={labelClasses} htmlFor={uid(c.value)}>
<label
className={labelClasses}
htmlFor={uid(c.value)}
data-cy={`radio-group-option-${c.value}`}
>
{c.label}
{c.labelDescription && (
<span className="usa-checkbox__label-description text-base-dark">
Expand Down
Loading

0 comments on commit 93f882c

Please sign in to comment.