Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Reload the Patrol briefing E2E page by navigation on WebKit
rcourtman6e48d6118617
diff --git a/tests/integration/tests/73-patrol-assistant-operator-briefing.spec.ts b/tests/integration/tests/73-patrol-assistant-operator-briefing.spec.tsindex e487e974d8..7662238f9f 100644--- a/tests/integration/tests/73-patrol-assistant-operator-briefing.spec.ts+++ b/tests/integration/tests/73-patrol-assistant-operator-briefing.spec.ts@@ -13,6 +13,16 @@ type WorkerFixtures = {const SCREENSHOT_PATH = "/tmp/patrol-assistant-operator-briefing.png";+// Reload by navigating to the current URL. Patrol's workspace views are routes,+// so opening Activity pushes a history entry. Playwright's WebKit build hits a+// release assertion in WebCore::Navigation::initializeForNewWindow when a+// pushState-created entry is reloaded and the page then navigates again, which+// crashed the second reload on mobile-safari. A fresh navigation to the same+// URL loads the same document without tripping it.+async function reloadPage(page: Page) {+ await page.goto(page.url(), { waitUntil: "domcontentloaded" });+}+async function openPatrolRecords(page: Page) {const activityTab = page.getByRole("tab", {name: "Activity",@@ -753,7 +763,7 @@ test.describe("Patrol Assistant operator briefing", () => {);includePendingApproval = false;- await page.reload({ waitUntil: "domcontentloaded" });+ await reloadPage(page);await openPatrolRecords(page);const queuedFindingTitle = page.getByText("High CPU usage").first();await expect(queuedFindingTitle).toBeVisible();@@ -784,7 +794,7 @@ test.describe("Patrol Assistant operator briefing", () => {includeUnifiedInvestigationRecord = false;includeInvestigationProposedFix = true;- await page.reload({ waitUntil: "domcontentloaded" });+ await reloadPage(page);await openPatrolRecords(page);const expiredFindingTitle = page.getByText("High CPU usage").first();await expect(expiredFindingTitle).toBeVisible();