f3a8a38acd
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
web-platform-ci / Standalone decision service (no cloud credentials) (pull_request) Has been cancelled
web-platform-ci / TypeScript, lint, unit, build (pull_request) Has been cancelled
web-platform-ci / Playwright E2E (pull_request) Has been cancelled
lekiwi-compatibility / cpu-compatibility (pull_request) Has been cancelled
集成同源 BYOK 会话隔离、精简模型设置、官方订阅入口和 HTTPS 发布运维;保留本地训练/调参与控制能力。同步 npm 版本及 CHANGELOG,记录公网真实 API 验收仍待用户凭据。
28 lines
866 B
TypeScript
28 lines
866 B
TypeScript
import { defineConfig } from '@playwright/test';
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
testMatch: 'website.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,
|
|
},
|
|
],
|
|
});
|