Files
Mujoco_WASM/web_platform/playwright.website.config.ts
T
chenlin 7ebe9092ba
web-platform-ci / Standalone decision service (no cloud credentials) (push) Has been cancelled
web-platform-ci / TypeScript, lint, unit, build (push) Has been cancelled
web-platform-ci / Playwright E2E (push) Has been cancelled
lekiwi-compatibility / cpu-compatibility (push) Has been cancelled
fix(website): 移除文件导入中的移动操作训练场景
2026-09-28 11:56:18 +08:00

28 lines
894 B
TypeScript

import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
testMatch: ['website.spec.ts', 'website.import.spec.ts'],
workers: 1,
timeout: 240_000,
use: {
baseURL: 'http://127.0.0.1:4180',
viewport: { width: 1440, height: 1000 },
launchOptions: { args: ['--use-angle=swiftshader', '--enable-unsafe-swiftshader'] },
screenshot: 'only-on-failure',
trace: 'retain-on-failure',
},
webServer: [
{
command: 'cd .. && CADWORLD_E2E=1 .venv/bin/python -m decision_server.tests.website_fixture',
url: 'http://127.0.0.1:8769/healthz',
reuseExistingServer: false,
},
{
command:
'cd .. && CADWORLD_DEV_API=http://127.0.0.1:8769 npm run preview -- --mode website --host 127.0.0.1 --port 4180 --strictPort',
url: 'http://127.0.0.1:4180',
reuseExistingServer: false,
},
],
});