Files
workinf_Blender_Wasm/web/playwright.outliner.config.ts
mes123456 721acdad4f
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
test(web): headed Outliner suite records today's baseline before the parity batches
The three baseline cases pin what the product already does: the shared React
tree keeps ARIA semantics and selection wiring, the tools bar searches, filters
and round-trips the eye column and the desktop mirror reaches the same tree
through the topbar 工作区显示 switch once the native canvas is dismissed.

The runner clones the armature-headed structure: preflight on DISPLAY, Chromium
and candidate hashes, a self-contained NOT_CLAIMED receipt per run that is never
overwritten, and soft feature probes (display modes, native filter, restriction
columns) that become gates together with the engine batches. The checker
re-validates candidate index/manifest/wasm hashes, fixture bytes and every
artifact sha256, and refuses headed claims without X11.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-30 04:01:04 +08:00

17 lines
1.3 KiB
TypeScript

import base from './playwright.config';
import path from 'node:path';
/* Default to the freshly built app so a bare `npx playwright test -c` targets the
* current sources; frozen candidates stay available through the env override. */
const candidate = process.env.WBV2_PRODUCTION_CANDIDATE ?? path.resolve(import.meta.dirname, 'dist');
const port = Number(process.env.WEB_TEST_PORT ?? 5314);
const jsonOutput = process.env.PLAYWRIGHT_JSON_OUTPUT_FILE;
export default { ...base, testMatch: ['outliner-headed-production.spec.ts'], timeout: 300_000,
...(jsonOutput ? { reporter: [...(Array.isArray(base.reporter) ? base.reporter : []), ['json', { outputFile: jsonOutput }] as const] } : {}),
/* 1920x1080 is the reference resolution for the desktop Outliner metrics
* (right column 339px, area 339x189, header 26px, row 20px). */
use: { ...base.use, baseURL: `http://127.0.0.1:${port}`, viewport: { width: 1920, height: 1080 },
headless: process.env.WEB_TEST_HEADLESS === '1' ? true : base.use?.headless,
launchOptions: { ...base.use?.launchOptions, args: ['--no-sandbox', '--use-gl=angle', '--use-angle=swiftshader', '--enable-unsafe-swiftshader'] } },
webServer: { command: `BLENDER_WEB_HTTP_PORT=${port} node ../tools/web/deployment-http-server.mjs '${candidate}'`, url: `http://127.0.0.1:${port}`, reuseExistingServer: false, timeout: 30_000 },
};