Skip to content

Commit

Permalink
chore: update Cypress tests to reflect updates to local fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Mar 15, 2024
1 parent 816a324 commit af2f5e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cypress/specs/benefit-select.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ describe("Benefit selection", () => {
helpers.selectAgency();
});

it("User sees 3 radio buttons", () => {
cy.get("input:radio").should("have.length", 3);
it("User sees 4 radio buttons", () => {
cy.get("input:radio").should("have.length", 4);
cy.contains("Courtesy Card");
cy.contains("65 years");
});

it("User must select a radio button, or else see a validation message", () => {
cy.get("input:radio").should("have.length", 3);
cy.get("input:radio").should("have.length", 4);
cy.get("input:radio:checked").should("have.length", 0);
cy.get("#form-verifier-selection").submit();

cy.url().should("include", verifier_selection_url);
cy.get("input:radio:checked").should("have.length", 0);
cy.get("input:invalid").should("have.length", 3);
cy.get("input:invalid").should("have.length", 4);
cy.get("input:radio")
.first()
.invoke("prop", "validationMessage")
Expand Down

0 comments on commit af2f5e3

Please sign in to comment.