mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-01 11:22:34 +02:00
Update status-page.spec.js
This commit is contained in:
parent
b58e0dce14
commit
284e2427e1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue