Skip to content

Commit

Permalink
Add afterEach hook to reload page and reset filters
Browse files Browse the repository at this point in the history
  • Loading branch information
sinatragianpaolo committed Mar 12, 2024
1 parent 7a74e5a commit ba560f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/Selection/filters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ba560f1

Please sign in to comment.