Skip to content

Commit

Permalink
fix: test e2e (#6378)
Browse files Browse the repository at this point in the history
Co-authored-by: victor <[email protected]>
  • Loading branch information
Viczei and victor authored Dec 19, 2024
1 parent f72703d commit fb11f43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe("Page Ministère du travail", () => {
"/fiche-ministere-travail/la-demission#quelle-est-la-situation-du-salarie-a-la-fin-du-contrat"
);
cy.findByRole("heading", { level: 1 }).should("have.text", "La démission");
cy.findByRole("heading", { level: 1 }).click();
cy.get('[aria-expanded="true"]', { timeout: 10000 })
.get("h2")
.should(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe("Fiche Service public", () => {

it("je vois une fiche service public avec un accordéon ouvert", () => {
cy.visit("/fiche-service-public/salaire-primes-et-avantages#salaire");
cy.findAllByRole("heading", { level: 1 }).click();
cy.get("h2").get('[aria-expanded="true"]').should("contain", "Salaire");
});
});

0 comments on commit fb11f43

Please sign in to comment.