Skip to content

Commit

Permalink
feat: make private plan status clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
namanaman committed Jun 14, 2024
1 parent b1459c8 commit 0e43a35
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 16 deletions.
18 changes: 16 additions & 2 deletions cypress/e2e/claimDetailIneligible.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,28 @@ describe("Claim Detail page - Ineligible scenario due to private plan", () => {
"./cypress/fixtures/claimDetail/claimDetailIneligiblePrivatePlan.html"
);

cy.checkIneligibleCore();
cy.contains("Ineligible").should("not.exist"); // Rendered on original HTML, without script change

cy.get("h1").contains("Status").should("be.visible");
cy.contains("leave starting August 1, 2023").should("be.visible");

cy.get(".complete.received")
.contains("August 7, 2023")
.should("be.visible");
cy.get(".complete").contains("Review").should("be.visible");
cy.get(".complete.end").contains("Decision").should("be.visible");
cy.contains("Claim for Temporary Disability Insurance (TDI)").should(
"be.visible"
);
cy.contains("Denied").should("be.visible");
cy.contains("Your employer has a private plan").should("be.visible");
cy.contains(
"Your employer has a private plan, so you don't qualify for State benefits. You may be eligible through your employer."
).should("be.visible");
cy.get("li")
.contains(
"Contact your Human Resources department about your employer's private insurer."
)
.should("be.visible");
});

it("passes accessibility checks", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/fixtures/claimDetail/claimDetail.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 0e43a35

Please sign in to comment.