Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix flaky special goals test by waiting for verification page to load fully (#6529)

Artur Pata3bb4c5b2f75e
diff --git a/e2e/tests/fixtures.ts b/e2e/tests/fixtures.ts
index ef7e611de1..55bb6a99f2 100644
--- a/e2e/tests/fixtures.ts
+++ b/e2e/tests/fixtures.ts
@@ -159,6 +159,10 @@ export async function addSite({
await page.getByRole('button', { name: 'Install Plausible' }).click()
await expect(page).toHaveURL(/\/installation/)
+
+ await expect(
+ page.getByRole('button', { name: /Verify .* installation/ })
+ ).toBeVisible()
}
export async function makeSitePublic({