From 404c6e102e7abad4f4478ab170f61637ca849aac Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 1 Jul 2026 03:04:29 +0000 Subject: [PATCH] fix: trust dashboard contract after navigation timeout --- scripts/src/hwlab-node-web-sentinel-p5.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/src/hwlab-node-web-sentinel-p5.ts b/scripts/src/hwlab-node-web-sentinel-p5.ts index 71f769dc..30d6b8a5 100644 --- a/scripts/src/hwlab-node-web-sentinel-p5.ts +++ b/scripts/src/hwlab-node-web-sentinel-p5.ts @@ -839,7 +839,8 @@ const dom = await page.evaluate(async ({ expectedRoutePrefix, expectedSentinelId }, { expectedRoutePrefix, expectedSentinelId, requestedRunId, requestedRunSelection }); const consoleErrors = consoleMessages.filter((item) => item.type === "error"); -const ok = !navigationError +const navigationOk = !navigationError || (dom.shell === true && dom.ready === true); +const ok = navigationOk && httpStatus !== null && httpStatus >= 200 && httpStatus < 300