Skip to content

Commit

Permalink
fix(RMS test): make test less flaky by asserting the language has cha…
Browse files Browse the repository at this point in the history
…nged before checking the format (#1995)

Co-authored-by: Steve Astels <[email protected]>
  • Loading branch information
andrewleith and sastels authored Nov 19, 2024
1 parent c50c71e commit cf99ac3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ describe("Remaining Messages Summary Component", () => {

it("shows thousands separator in FR for today’s remaining", () => {
cy.get("#header-lang").click();
cy.get("html").should("have.attr", "lang", "fr");
cy.visit(PageURL);
RMS.Below()
.find('*[data-testid="rms"]')
Expand All @@ -82,6 +83,7 @@ describe("Remaining Messages Summary Component", () => {

it("shows thousands separator in FR for the year’s remaining", () => {
cy.get("#header-lang").click();
cy.get("html").should("have.attr", "lang", "fr");
cy.visit(PageURL);
RMS.Below()
.find('*[data-testid="rms"]')
Expand Down

0 comments on commit cf99ac3

Please sign in to comment.