test(e2e): 前后台联调 Playwright 与 admin 冒烟
ci / h5 (push) Canceled after 0s
ci / api (push) Canceled after 0s
ci / ess-docs (push) Canceled after 0s

新增 e2e-live 真 API 一致性全路径,并为 admin-h5 增加 mock 浏览器冒烟。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-06 22:41:43 +08:00
co-authored by Cursor
parent 879bf70cb7
commit 7e9023f0a8
12 changed files with 400 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
# e2e-live — 前后台联调(真 API
需要:
1. `npm run deps:up`
2. API`cd apps/api && go run ./cmd/server``:8080`,含 admin bootstrap
3. 本套件会自动拉起 user-h5 `:5173` 与 admin-h5 `:5174`(已占用则复用)
```bash
npm install
npm run test:e2e:live
```
覆盖:画像 → 后台用户一致 → 前台开通会员 ↔ 后台订单/会员 → 后台授年卡 ↔ 前台年卡+审计 → 关系 → Ask → 量表 → 多页烟测。