部署公网并修正 live smoke 角色导航(05-30-deploy-mobile-public-audit)

这个提交包含在:
2026-05-30 15:42:43 +08:00
父节点 df56d6f1a0
当前提交 56faf3b71c
共修改 9 个文件,包含 157 行新增和 6 行删除
@@ -110,6 +110,9 @@ SYNC_ENV=0 bash deploy/trialrun/deploy.sh
`/portal` URL and the `今日任务` heading.
- Navigation-label assertions for the workbench link must accept both `工作台`
and `Portal` while older mocks still use English labels.
- Navigation assertions must be role-aware. Admin/manager smoke may assert
team/admin entries such as `团队`, but ordinary employee smoke must not
require links that `NavLinks` intentionally hides for that role.
- Smoke tests must not require a copy string that is not a product contract for
public availability.
- If the product intentionally renames the primary workbench label again, update
@@ -120,6 +123,8 @@ SYNC_ENV=0 bash deploy/trialrun/deploy.sh
- Page reaches `/portal`, `今日任务` is visible, but nav label is `工作台` ->
smoke should pass.
- Employee reaches `/portal`, role-aware navigation hides `团队`, and employee
pages such as `项目` remain reachable -> smoke should pass.
- Page reaches `/portal`, but `今日任务` is missing -> smoke should fail.
- Page stays on login, `/403`, error fallback or another route -> smoke should
fail.
@@ -130,10 +135,14 @@ SYNC_ENV=0 bash deploy/trialrun/deploy.sh
- Good: `assertPortalLoaded` checks `/portal`, `今日任务`, and a workbench link
matching either `工作台` or `Portal`.
- Good: `assertMainNavVisible(page, { expectTeam: false })` is used for
ordinary employee live smoke.
- Base: mocked E2E fixtures may still emit `Portal`; live public navigation may
emit `工作台`.
- Bad: live smoke hard-codes only `Portal` and blocks deployment after a valid
Chinese navigation rollout.
- Bad: employee live smoke requires the `团队` sidebar link after role-aware
navigation intentionally hides it.
### 6. Tests Required