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