Skip to content

Commit

Permalink
Uses values working in CI for wealth calculator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fellmirr committed Nov 18, 2024
1 parent cd17932 commit ed8332c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/no/wealthcalculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ describe("Navigation", () => {

cy.get("[data-cy=wealthcalculator-graph]").should(
"contain.text",
"Om du donerer 24% avinntekten din er du blant",
"Om du donerer 25% avinntekten din er du blant",
);
cy.get("[data-cy=wealthcalculator-graph]").should("contain.text", "Du er i dag blant");
cy.get("[data-cy=wealthcalculator-donation-percentage-input]").should("have.value", "24");
cy.get("[data-cy=wealthcalculator-donation-percentage-input]").should("have.value", "25");
});

it("Should allow users to tap the slider track to change percentage", () => {
Expand All @@ -118,10 +118,10 @@ describe("Navigation", () => {

cy.get("[data-cy=wealthcalculator-graph]").should(
"contain.text",
"Om du donerer 38% avinntekten din er du blant",
"Om du donerer 39% avinntekten din er du blant",
);
cy.get("[data-cy=wealthcalculator-graph]").should("contain.text", "Du er i dag blant");
cy.get("[data-cy=wealthcalculator-donation-percentage-input]").should("have.value", "38");
cy.get("[data-cy=wealthcalculator-donation-percentage-input]").should("have.value", "39");
});

it("Should be possible to expand and collapse the explanation", () => {
Expand Down

0 comments on commit ed8332c

Please sign in to comment.