From ba560f1437649280f75cee146f65972892d2607a Mon Sep 17 00:00:00 2001 From: sinatragianpaolo Date: Tue, 12 Mar 2024 14:28:32 +0100 Subject: [PATCH] Add afterEach hook to reload page and reset filters --- tests/e2e/Selection/filters.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/Selection/filters.spec.ts b/tests/e2e/Selection/filters.spec.ts index 6adca544..99e07274 100644 --- a/tests/e2e/Selection/filters.spec.ts +++ b/tests/e2e/Selection/filters.spec.ts @@ -9,6 +9,10 @@ test.describe("Filtri ", () => { await selectionPage.candidatesWithoutQuestions(); await selectionPage.visit(); }); + test.afterEach(async ({ page }) => { + //reload the page to reset the filters + await page.reload(); + }); test("there is a filter card", async () => { await expect(selectionPage.elements().filterCard()).toBeVisible();