Files
workinf_Blender_Wasm/web/playwright.mesh-decimate.config.ts
mes123456 fe071c1249
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): decimate modifier stack evaluation, desktop entries and headed suite
- engine: publish evaluated modifier-stack meshes (triangleCount, base counts,
  EVALUATED status) for object-mode single-user meshes with enabled modifiers
- UI: 添加修改器 ▸ 生成 ▸ 简化 (Decimate) menu and edit-mode
  网格 ▸ 清理 ▸ 简化几何 dialog (mesh.decimate with ratio)
- tests: four-case headed suite (modifier/edit × web/native) on the monkey GLB
- tools: headed runner, receipt checker, desktop golden generator
- docs: MESH-DECIMATE-HEADED-TESTS.md and status completion record

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 20:57:16 +08:00

14 lines
1.0 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 ?? 5310);
const jsonOutput = process.env.PLAYWRIGHT_JSON_OUTPUT_FILE;
export default { ...base, testMatch: ['mesh-decimate-*-production.spec.ts'], timeout: 420_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 },
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 },
};