feat(master-detail): 主子表向导(amis wizard)+ 设计中心入口 + e2e

新建主子表功能:设计中心「+ 新建主子表」→ 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>
This commit is contained in:
2026-06-20 15:37:22 +08:00
parent 2b261e319f
commit 934c6464db
5 changed files with 250 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ import { defineConfig, devices } from '@playwright/test';
// 先单独启动 8094 后端,再 `npx playwright test -c playwright.fivering.config.ts`。
export default defineConfig({
testDir: './e2e',
testMatch: 'five-ring.spec.ts',
testMatch: /(five-ring|master-detail)\.spec\.ts/,
fullyParallel: false,
workers: 1,
timeout: 120_000,