Use stable canvas evidence for desktop gate

This commit is contained in:
eust-w 2026-06-24 11:08:46 +08:00
parent 12feed71cc
commit 1585fbb5d6
2 changed files with 11 additions and 11 deletions

View File

@ -123,8 +123,8 @@ handoff or upload them to the external report system when needed.
Latest verified product gate:
- Started: `2026-06-24T02:53:15.237Z`
- Finished: `2026-06-24T02:59:36.006Z`
- Started: `2026-06-24T03:03:01.048Z`
- Finished: `2026-06-24T03:07:35.635Z`
- Result: `23 passed / 0 warned / 0 failed`
- Frontend mode: `preview`
- Fail on warning: `true`
@ -135,7 +135,7 @@ Latest verified product gate:
- Real backend editing: `25 passed / 0 warned / 0 failed`
- Desktop screenshot:
`test-results/product-readiness/product-readiness-desktop.jpg`
(`fallback=canvas`, captured from the real WebGL preview after full-page screenshot timeout)
(`strategy=canvas`, captured from the real WebGL preview)
- Mobile screenshot:
`test-results/product-readiness/product-readiness-mobile.jpg`
(`strategy=canvas`, captured from the real WebGL preview)
@ -151,7 +151,7 @@ Scene evidence:
- Desktop acceptance telemetry: `0 ms / 9-0-0`
- Mobile preview: `636 objects / 635 bindings / 30 pixels`
- Mobile acceptance: `9 通过 / 0 警告 / 0 失败,共 9 项`
- Mobile acceptance telemetry: `277 ms / 9-0-0`
- Mobile acceptance telemetry: `0 ms / 9-0-0`
Bundle evidence:
@ -162,16 +162,16 @@ Bundle evidence:
Control evidence:
- Resume backend state: `77ms paused=false`
- Resume backend state: `96ms paused=false`
- Resume visible UI state: `82ms`
- Pause backend state: `2754ms paused=true`
- Pause visible UI state: `2681ms`
- Desktop acceptance wait: `7865ms` total, product telemetry `0ms`
- Mobile acceptance wait: `24342ms` total, product telemetry `277ms`
- Pause backend state: `515ms paused=true`
- Pause visible UI state: `507ms`
- Desktop acceptance wait: `6197ms` total, product telemetry `0ms`
- Mobile acceptance wait: `19140ms` total, product telemetry `0ms`
- Runtime diagnostics panel:
`state=http://127.0.0.1:18090/state`,
`control=http://127.0.0.1:18090/control`,
`latency=响应 2680 ms / 确认 2680 ms / 可见 2681 ms`,
`latency=响应 506 ms / 确认 506 ms / 可见 507 ms`,
`acceptanceLatency=0 ms / 9-0-0`,
`binding=635/636; 4/568`.

View File

@ -580,7 +580,7 @@ async function verifyBrowser() {
const pauseControl = await controlThroughUi(desktop, "#viewport-pause", true);
const desktopAcceptance = await runAcceptanceReview(desktop);
const desktopStats = await readBrowserStats(desktop);
const desktopScreenshot = await safeScreenshot("browser-desktop-screenshot", desktop, path.join(outDir, "product-readiness-desktop.jpg"));
const desktopScreenshot = await safeScreenshot("browser-desktop-screenshot", desktop, path.join(outDir, "product-readiness-desktop.jpg"), { preferCanvas: true });
const mobile = await browser.newPage({ viewport: { width: 390, height: 844 }, deviceScaleFactor: 2, isMobile: true });
await mobile.addInitScript(() => window.localStorage.removeItem("motrixsim-web-locale"));