Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Move mouse away to prevent hover (#2379)
Olga Bulat47e4b5e4b7e4
diff --git a/frontend/test/storybook/visual-regression/v-header-internal.spec.ts b/frontend/test/storybook/visual-regression/v-header-internal.spec.tsindex 05929880b..aebcfccf7 100644--- a/frontend/test/storybook/visual-regression/v-header-internal.spec.ts+++ b/frontend/test/storybook/visual-regression/v-header-internal.spec.ts@@ -35,6 +35,9 @@ test.describe("VHeaderInternal", () => {test(`mobile-header-internal-modal-${dir}`, async ({ page }) => {await page.goto(pageUrl(dir))await page.locator('button[aria-haspopup="dialog"]').click()+ // Mouse stays over the button, so the close button is hovered.+ // To prevent this, move the mouse away.+ await page.mouse.move(0, 0)await expectSnapshot(`mobile-header-internal-open-${dir}`, page)})})