Update status-page.spec.js

This commit is contained in:
grvwy 2025-05-23 00:22:01 +02:00
parent b58e0dce14
commit 284e2427e1

View file

@ -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);