Merge pull request #1359 from pikasTech/fix/1356-dashboard-navigation-contract

fix: trust dashboard contract after navigation timeout
This commit is contained in:
Lyon
2026-07-01 11:04:57 +08:00
committed by GitHub
+2 -1
View File
@@ -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