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>
This commit is contained in:
2026-04-30 10:36:20 +08:00
parent 75291986cf
commit 27ba562f39
2 changed files with 43 additions and 0 deletions
+2
View File
@@ -9,6 +9,8 @@ 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=