- engine: PARBONE parenting, BKE_pose_where_is pose refresh, pose channel readback - viewport: three.js bone wireframes for the main-thread and offscreen paths - properties: draft numeric transform inputs (decimals survive typing), armature pose readback in degrees with step=any fields so validation cannot block Apply Pose - tests: headed armature/robot suite (9 cases), receipts bound to candidate hashes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
15 lines
1.2 KiB
TypeScript
15 lines
1.2 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 ?? 5312);
|
|
const jsonOutput = process.env.PLAYWRIGHT_JSON_OUTPUT_FILE;
|
|
export default { ...base, testMatch: ['armature-robot-headed-production.spec.ts', 'armature-engine-headed-production.spec.ts'], timeout: 300_000,
|
|
...(jsonOutput ? { reporter: [...(Array.isArray(base.reporter) ? base.reporter : []), ['json', { outputFile: jsonOutput }] as const] } : {}),
|
|
use: { ...base.use, baseURL: `http://127.0.0.1:${port}`, viewport: { width: 1440, height: 900 },
|
|
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 },
|
|
};
|