新建主子表功能:设计中心「+ 新建主子表」→ MasterDetailShell amis wizard 四步 (建主实体→建子表(传masterTable自动加FK)→生成主子页(compile master-detail-v1, 后端ensureLink+编译出 input-table 子表页)→发布)。子行经主表_ADD流随主记录级联落库。 用 api.responseData 把主实体id/表名 remap 避免被子实体响应覆盖。 Playwright e2e 全程点穿:建主+子→生成→发布→级联_ADD(status0)。1 passed。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
27 lines
966 B
TypeScript
27 lines
966 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
||
|
||
// 人走五环 UI 点穿 e2e 专用配置:webServer 反代到 8094(含本特性新代码),
|
||
// 与默认 playwright.config.ts(反代 8093 dev)隔离,不影响你正在跑的 8093。
|
||
// 先单独启动 8094 后端,再 `npx playwright test -c playwright.fivering.config.ts`。
|
||
export default defineConfig({
|
||
testDir: './e2e',
|
||
testMatch: /(five-ring|master-detail)\.spec\.ts/,
|
||
fullyParallel: false,
|
||
workers: 1,
|
||
timeout: 120_000,
|
||
reporter: [['list']],
|
||
use: {
|
||
baseURL: 'http://localhost:5174',
|
||
trace: 'off',
|
||
screenshot: 'only-on-failure',
|
||
},
|
||
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
|
||
webServer: {
|
||
command:
|
||
'NODE_OPTIONS=--max-http-header-size=65536 VITE_BACKEND_TARGET=http://localhost:8094 npx vite --port 5174 --strictPort',
|
||
url: 'http://localhost:5174',
|
||
reuseExistingServer: false,
|
||
timeout: 120_000,
|
||
},
|
||
});
|