kindergarten_java/reading-platform-frontend
En 1fb6488468 test: 学校端 E2E 测试全部通过 - 修复菜单点击和退出登录问题
修复的问题:
- 二级菜单点击问题:使用 page.evaluate() 绕过 Playwright 可见性检查
- 页面标题断言严格模式冲突:使用 getByRole('heading').first()
- 退出登录功能:增强 logout() 函数,支持多种退出方式

测试结果:
- 69 个测试全部通过
- 1 个测试跳过(通知管理 - 学校端无此菜单)
- 执行时间:8.3 分钟

修改的文件:
- tests/e2e/school/helpers.ts - 修复 clickSubMenu 和 logout 函数
- tests/e2e/school/04-students.spec.ts - 修复页面标题断言
- tests/e2e/school/05-teachers.spec.ts - 修复页面标题断言
- tests/e2e/school/99-logout.spec.ts - 使用增强的 logout 函数

文档更新:
- docs/dev-logs/2026-03-14.md - 更新测试结果
- docs/CHANGELOG.md - 添加学校端测试记录
- docs/test-logs/school/2026-03-14-school-e2e-full-pass.md - 详细测试报告

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 11:25:38 +08:00
..
playwright-report refactor: 完成代码重构规范化 - 2026-03-12 2026-03-12 17:27:13 +08:00
public Initialize the Kindergarten platform source code. 2026-02-26 15:22:26 +08:00
src refactor: 代码合规性审查修复 - 三层架构、API路径、文档规范 2026-03-13 14:13:46 +08:00
test-results refactor: 完成代码重构规范化 - 2026-03-12 2026-03-12 17:27:13 +08:00
tests test: 学校端 E2E 测试全部通过 - 修复菜单点击和退出登录问题 2026-03-14 11:25:38 +08:00
.DS_Store refactor: 完成代码重构规范化 - 2026-03-12 2026-03-12 17:27:13 +08:00
.env.development 提交说明 2026-02-28 16:41:39 +08:00
dev.db 提交说明 2026-02-28 16:41:39 +08:00
index.html Initialize the Kindergarten platform source code. 2026-02-26 15:22:26 +08:00
openapi.json feat: 三端全链路测试完成 - 学校端、教师端、课程包业务 2026-03-13 13:48:28 +08:00
orval.config.ts feat: 三端全链路测试完成 - 学校端、教师端、课程包业务 2026-03-13 13:48:28 +08:00
package-lock.json refactor: 完成代码重构规范化 - 2026-03-12 2026-03-12 17:27:13 +08:00
package.json feat: Java后端迁移完成 - 资源管理API修复与文档更新 2026-03-12 19:49:48 +08:00
playwright.config.ts refactor: 完成代码重构规范化 - 2026-03-12 2026-03-12 17:27:13 +08:00
start-frontend.sh 提交说明 2026-02-28 16:41:39 +08:00
test-page.mjs refactor: 完成代码重构规范化 - 2026-03-12 2026-03-12 17:27:13 +08:00
tsconfig.json Initialize the Kindergarten platform source code. 2026-02-26 15:22:26 +08:00
tsconfig.node.json Initialize the Kindergarten platform source code. 2026-02-26 15:22:26 +08:00
typed-router.d.ts refactor: 代码重构 - API规范化和文件路由配置 2026-03-12 13:05:20 +08:00
vite.config.ts refactor: 代码合规性审查修复 - 三层架构、API路径、文档规范 2026-03-13 14:13:46 +08:00