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>
17 lines
1.3 KiB
TypeScript
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 },
|
|
};
|