From 284e2427e177b22590814f35e7d0c3d6eea81aea Mon Sep 17 00:00:00 2001 From: grvwy Date: Fri, 23 May 2025 00:22:01 +0200 Subject: [PATCH] Update status-page.spec.js --- test/e2e/specs/status-page.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);