Files
workinf_Blender_Wasm/web/playwright.workflow-case.config.ts
mes123456 f3e21c6b98
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
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

13 lines
1.3 KiB
TypeScript

import base from './playwright.config';
const gpuTraceArgs = process.env.WBV2_GPU_TRACE_FILE ? ['--trace-startup=gpu,dawn,disabled-by-default-gpu.service,disabled-by-default-gpu.dawn', '--trace-startup-duration=45', '--trace-startup-format=json', `--trace-startup-file=${process.env.WBV2_GPU_TRACE_FILE}`] : [];
if (!process.env.WEB_DESKTOP_CANDIDATE_PUBLIC || !process.env.WEB_DESKTOP_CANDIDATE_FACTORY || !process.env.WBV2_CASE_FIXTURE) throw new Error('Run through tools/web/run-workflow-case.mjs');
export default {
...base, retries: 0, workers: 1,
globalSetup: './tests/fixtures/workflow-case-setup.ts',
use: { ...base.use, browserName: 'chromium' as const, actionTimeout: 10000, navigationTimeout: 60000, viewport: { width: 1440, height: 900 }, trace: 'on' as const, screenshot: 'on' as const,
launchOptions: { ...base.use?.launchOptions, args: [...(base.use?.launchOptions?.args ?? []).filter(arg => !arg.startsWith('--use-gl=') && !arg.startsWith('--use-angle=')), '--use-gl=angle', '--use-angle=swiftshader', ...gpuTraceArgs] } },
webServer: process.env.WBV2_CASE_APP
? { command: 'node ../tools/web/deployment-http-server.mjs "$WBV2_CASE_APP"', url: base.use?.baseURL, reuseExistingServer: false, timeout: 60_000 }
: { ...base.webServer, reuseExistingServer: false, timeout: 60_000 },
};