diff --git a/src/test/search.spec.ts b/src/test/search.spec.ts index 15f76db..a84ed2b 100644 --- a/src/test/search.spec.ts +++ b/src/test/search.spec.ts @@ -38,7 +38,7 @@ test.describe("Search", async () => { test("Close Search By Clicking Background", async ({ page }) => { await page.getByRole("document").press("/"); await isOpen(); - await page.locator("#site-search").click(); + await page.locator("#site-search dialog").click(); await isClosed(); });