Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
import { expect } from "@playwright/test"
import { test } from "~~/test/playwright/utils/test"
import breakpoints from "~~/test/playwright/utils/breakpoints"
import { dirParam } from "~~/test/storybook/utils/args"
test.describe.configure({ mode: "parallel" })
test.describe("VCollectionHeader", () => {
breakpoints.describeEvery(({ expectSnapshot }) => {
for (const dir of ["ltr", "rtl"] as const) {
test(`All headers ${dir}`, async ({ page }) => {
await page.goto(
`/iframe.html?id=components-vcollectionheader--all-collections${dirParam(dir)}`
)
// Ensure the page is hydrated before taking snapshots
await expect(page.getByRole("combobox").nth(0)).toBeEnabled()
await expectSnapshot(
page,
`VCollectionHeaders-${dir}`,
page.locator(".wrapper")
)
})
}
})
})