diff --git a/test/e2e/specs/status-page.spec.js b/test/e2e/specs/status-page.spec.js index 8bc1d1c1c..c8f548b60 100644 --- a/test/e2e/specs/status-page.spec.js +++ b/test/e2e/specs/status-page.spec.js @@ -125,10 +125,10 @@ test.describe("Status Page", () => { expect(updateCountdown).toBeLessThanOrEqual(refreshInterval + 10); await expect(page.locator("body")).toHaveClass(theme); - + // Add Google Analytics ID to head and verify await page.waitForFunction(() => { - return document.head.innerHTML.includes("googletagmanager.com"); + return document.head.innerHTML.includes("https://www.googletagmanager.com/gtag/js?id="); }, { timeout: 5000 }); expect(await page.locator("head").innerHTML()).toContain(googleAnalyticsId);