Files
workinf_Blender_Wasm/web/playwright.armature-robot.config.ts
mes123456 8dcc41c06d
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
feat(web): armature bone parenting, pose evaluation and ABB IRB120 headed suite
- 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>
2026-11-29 09:13:02 +08:00

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 },
};