Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Fix VR test
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Feb 8, 2023
1 parent c83e6ac commit 2dc78c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/playwright/visual-regression/components/filters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
enableNewHeader,
goToSearchTerm,
languageDirections,
t,
} from "~~/test/playwright/utils/navigation"
import breakpoints from "~~/test/playwright/utils/breakpoints"

Expand Down Expand Up @@ -39,7 +40,7 @@ for (const dir of languageDirections) {

await goToSearchTerm(page, "birds", { dir })
await page.getByRole("button", { name: "Menu" }).click()
await page.getByRole("tab", { name: "Filters" }).click()
await page.getByRole("tab", { name: t("filters.title", dir) }).click()

await expectSnapshot(`filters-modal-${dir}.png`, page)
})
Expand All @@ -49,7 +50,7 @@ for (const dir of languageDirections) {

await goToSearchTerm(page, "birds", { dir })
await page.getByRole("button", { name: "Menu" }).click()
await page.getByRole("tab", { name: "Filters" }).click()
await page.getByRole("tab", { name: t("filters.title", dir) }).click()

await page.locator('input[type="checkbox"]').first().check()

Expand Down

0 comments on commit 2dc78c5

Please sign in to comment.