bc85888359
Made-with: Cursor
26 lines
1.2 KiB
Markdown
26 lines
1.2 KiB
Markdown
# huike-e2e-moicen
|
||
|
||
针对 **已部署** 的 `music-room.moicen.com`(或任意 `HUIKE_FRONT_BASE_URL`)跑 **Playwright**,不 clone `huike-front`、不起 Postgres、不编译 Rust。全栈本地 E2E 见 **[alchemy-studio/huike-e2e](https://github.com/alchemy-studio/huike-e2e)**。
|
||
|
||
## 本机
|
||
|
||
```bash
|
||
npm ci
|
||
npx playwright install chromium
|
||
npx playwright test
|
||
```
|
||
|
||
走代理安装(默认 `http://localhost:7890`):`npm run install:with-proxy`
|
||
|
||
可选:复制 `.env.e2e.example` → `.env.e2e`,填写 `MOICEN_E2E_UNIONID`(勿提交 `.env.e2e`)。未配置时「真实 unionid」用例自动 skip。
|
||
|
||
## GitHub Actions
|
||
|
||
在仓库 **Settings → Secrets → Actions** 配置 **`MOICEN_E2E_UNIONID`**(测试用户 `union_id`)后,全链路用例才会执行;否则仅跑壳层与伪造 unionid 用例。
|
||
|
||
`workflow_dispatch` 可改目标 `base_url`;**默认定时:每天 06:30 UTC**(见 `.github/workflows/playwright-music-room.yml`)。
|
||
|
||
## 与 moicen 运维文档
|
||
|
||
浏览器联调、在 UC 库查 `union_id` 等:见团队内 **`plan_skills/moicen/moicen-music-room-browser-test-runbook.md`**(与 huiwing-migration / 运维仓同路径即可)。
|