Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

607 B
Raw Blame
import { expect } from "@playwright/test"
import { test } from "~~/test/playwright/utils/test"
import { makeGotoWithArgs } from "~~/test/storybook/utils/args"
import { expectSnapshot } from "~~/test/playwright/utils/expect-snapshot"

for (const slug of ["default", "with-icon", "without-border"]) {
  test(`vselectfield-${slug}`, async ({ page }) => {
    await makeGotoWithArgs(`components-vselectfield--${slug}`)(page)
    await expect(page.getByRole("combobox").nth(0)).toBeEnabled()
    await expectSnapshot(
      page,
      `vselectfield-${slug}`,
      page.locator(".screenshot-area")
    )
  })
}