fix: pass sentinel boundary data into dashboard probe
This commit is contained in:
@@ -2232,7 +2232,7 @@ if (captureScreenshot && screenshotPath) {
|
||||
});
|
||||
}
|
||||
|
||||
const dom = await page.evaluate(async () => {
|
||||
const dom = await page.evaluate(async ({ expectedRoutePrefix, expectedSentinelId }) => {
|
||||
const visible = (element) => Boolean(element && !element.hidden);
|
||||
const text = (selector) => String(document.querySelector(selector)?.textContent || "").replace(/\s+/g, " ").trim();
|
||||
const numberValue = (value) => Number.isFinite(Number(value)) ? Number(value) : 0;
|
||||
@@ -2500,7 +2500,7 @@ const dom = await page.evaluate(async () => {
|
||||
if (parts.length < 4) return true;
|
||||
return Number(parts[3]) >= 0.99;
|
||||
}
|
||||
});
|
||||
}, { expectedRoutePrefix, expectedSentinelId });
|
||||
|
||||
const runFilterProbe = await page.evaluate(async () => {
|
||||
const requestedRunId = "sentinel-run-mqxi16vo-39b603ae";
|
||||
|
||||
Reference in New Issue
Block a user