# 班级管理模块 Web 功能测试报告 > 测试日期:2026-06-22 19:36:55 > 模块:班级管理 (Class Management) > 版本:v1 > 测试工具:Playwright + Chromium (headless) > Base URL:http://localhost:3000 > 覆盖子模块:admin-classes, management-classes, teacher-classes, teacher-my-classes --- ## 一、测试概览 | 指标 | 数值 | |------|------| | 总测试项 | 21 | | 通过 | 18 | | 失败 | 0 | | 警告 | 3 | | 通过率 | 85.7% | ### 测试覆盖 | 子模块 | 路由 | 权限点 | admin | teacher | student | parent | |--------|------|--------|-------|---------|---------|--------| | 班级管理(admin) | /admin/school/classes | SCHOOL_MANAGE | ✅ 完整CRUD | ❌ 拒绝 | ❌ 拒绝 | ❌ 拒绝 | | 年级班级管理 | /management/grade/classes | GRADE_MANAGE | ✅ 完整CRUD | ✅ 完整CRUD | ❌ 拒绝 | ❌ 拒绝 | | 教师班级 | /teacher/classes | EXAM_CREATE | ✅ 查看 | ✅ 查看 | ❌ 拒绝 | ❌ 拒绝 | | 教师我的班级 | /teacher/classes/my | EXAM_CREATE | ✅ 查看 | ✅ 查看 | ❌ 拒绝 | ❌ 拒绝 | --- ## 二、各角色测试详情 ### 角色:admin - **登录状态**: ✅ 成功 - **警告**: 控制台错误: A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used: - A server/client bran - **警告**: 控制台错误: A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used: - A server/client bran - **警告**: 控制台错误: A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used: - A server/client bran - **警告**: 控制台错误: A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used: - A server/client bran #### 访问权限测试 | 状态 | 子模块 | 路由 | HTTP | 最终 URL | 备注 | |------|--------|------|------|----------|------| | ✅ | admin_classes | `/admin/school/classes` | 200 | `/admin/school/classes` | - | | ✅ | management_classes | `/management/grade/classes` | 200 | `/management/grade/classes` | - | | ⚠️ | teacher_classes | `/teacher/classes` | 200 | `/teacher/classes/my` | 警告: 重定向到 http://localhost:3000/teacher/classes/my(预期 /teacher/classes) | | ✅ | teacher_my_classes | `/teacher/classes/my` | 200 | `/teacher/classes/my` | - | #### CRUD 功能测试 | 状态 | 功能 | 操作 | 详情 | |------|------|------|------| | ✅ | admin 班级 CRUD | ✅ 列表加载 | 列表/空状态正常显示 | | ✅ | admin 班级 CRUD | ✅ 打开创建对话框 | 创建对话框已打开 | | ✅ | admin 班级 CRUD | ✅ 编辑入口存在 | 无数据行,跳过 | | ✅ | admin 班级 CRUD | ✅ 删除入口存在 | 无数据行,跳过 | | ⚠️ | 年级班级 CRUD (grade_head) | ❌ 列表加载 | 未找到表格或空状态 | | ⚠️ | 年级班级 CRUD (grade_head) | ❌ 打开创建对话框 | 异常: Locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator("button:has-text(\"New\"), button:has-text(\"新建\"), button:has-text(\"Create\"), button:has-text(\"新增\")").first - locator resolved to