diff --git a/apps/site/e2e/foundation.spec.ts b/apps/site/e2e/foundation.spec.ts index 127be49..4fe95e2 100644 --- a/apps/site/e2e/foundation.spec.ts +++ b/apps/site/e2e/foundation.spec.ts @@ -88,7 +88,11 @@ test("the repository page has avatars, one chart, and none of the panels the Sit await expect(page.getByRole("heading", { name: "Commits over time" })).toHaveCount(1); await expect(page.getByRole("list", { name: "Contributors" }).getByRole("listitem")).toHaveCount(3); await expect(page.getByRole("list", { name: "Contributors" }).locator("[class*=avatar]").first()).toBeVisible(); - await page.keyboard.press("Control+k"); + const palette = page.getByRole("dialog", { name: "Search people, folders, files and commits" }); + await expect(async () => { + await page.keyboard.press("Control+k"); + await expect(palette).toBeVisible({ timeout: 1000 }); + }).toPass(); await page.keyboard.type("Carol"); await expect(page.getByRole("option", { name: "Carol", exact: true })).toBeVisible(); await expect(page.getByRole("option", { name: /Commits that mention/ })).toBeVisible(); diff --git a/apps/site/vite.config.ts b/apps/site/vite.config.ts index 6123d92..405adba 100644 --- a/apps/site/vite.config.ts +++ b/apps/site/vite.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ devtools(), tailwindcss(), tanstackStart(), - nitro({ traceDeps: ["satori*", "harfbuzzjs*", "@resvg/resvg-js*", "pdfkit*"] }), + nitro({ traceDeps: ["satori*", "harfbuzzjs*", "@resvg/resvg-js*", "pdfkit*", "react", "react-dom"] }), react(), sentryTanstackStart({ org: process.env.SENTRY_ORG,