Files
weli 27ba562f39 test(course-package): add teacher UI test verifying nav link and page render
Navigate to teacher.moicen.com, verify "课包" nav link is visible for
teacher/supervisor, click through to /course-packages, assert seeded
data renders. Catches frontend build/deploy regressions.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-30 10:36:20 +08:00

17 lines
794 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 复制为 .env.e2e(已 gitignore)。勿将含真实口令的 .env.e2e 提交到 git。
MOICEN_E2E_UNIONID=
HUIKE_FRONT_BASE_URL=https://music-room.moicen.com
# 管理端 tasks 页(tests/admin-tasks.spec.ts);口令仅放本地 .env.e2e
HUIKE_ADMIN_BASE_URL=https://admin.moicen.com
MOICEN_ADMIN_USER=
MOICEN_ADMIN_PASSWORD=
# 课包(course_package)测试依赖 MOICEN_E2E_UNIONID(共用 teacher/student unionid
# 测试通过 JWT roles 验证只有 TEACHER/SUPERVISOR 角色可访问课包 API。
# 教师端 UI 测试需要教师应用基址(默认 https://teacher.moicen.com
HTYTEACHER_BASE_URL=https://teacher.moicen.com
# 可选:任意 HTTP 200 健康检查 URLCI 可在仓库 Settings → Variables 配置 MOICEN_HEALTHCHECK_URL
MOICEN_HEALTHCHECK_URL=