Commit Graph

8 Commits

Author SHA1 Message Date
weli 20be1e6df7 chore(clazz-e2e): remove debug logging from clazz-dual-view tests
Debug logs were added to diagnose CI .view-toolbar failures. Root cause
was identified and fixed — role dialog now uses proper waitFor instead of
isVisible snapshot. Cleanup phase.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-03 05:01:15 +08:00
weli e43b0597a1 fix(clazz-e2e): increase role dialog wait from 3s to 15s for CI reliability
In CI the "请选择您的登录身份" role selection dialog may take longer
than 3 seconds to appear. The old `waitForTimeout(3000) + isVisible()`
snapshot check missed it, causing no role to be selected. On subsequent
navigation to /clazz the route guard found multiple active roles and
redirected to / instead, making `.view-toolbar` never appear.

Replaced with `waitFor({ state: 'visible', timeout: 15_000 })` which
waits up to 15s for the dialog.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-03 03:37:42 +08:00
weli 68780b432a debug(clazz-e2e): add page state debugging for CI view-toolbar failure
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-03 03:21:18 +08:00
weli 29ceb195b8 fix(clazz-e2e): robust event click, selector fix, supervisor graceful skip
- clazz-scheduling: use JS dispatchEvent to bypass fc-timegrid-event-harness
- clazz-scheduling: wait for event visibility instead of immediate count
- clazz-dual-view: fix .view-toolbar__range selector (sibling not child)
- clazz-supervisor-matrix: improve role switch confirm dialog handling
- clazz-supervisor-matrix: graceful skip when 周晓慧 has no courses this week

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-03 00:27:46 +08:00
weli 5fb6293b65 test: add supervisor matrix view E2E tests
Add 3 tests for SUPERVISOR role in matrix view:
- TEACHER mode: subsidiary teacher not visible
- SUPERVISOR mode: subsidiary courses appear with different colors
- Switch back to TEACHER: subsidiary courses disappear

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-02 11:37:51 +08:00
weli ef7674cede e2e: update tests for weekly-timetable grid layout (days × slots)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-02 09:17:34 +08:00
weli b16556ca63 e2e: update matrix view tests for two-row header + teacher/student info
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-02 09:07:27 +08:00
weli 27148f0e52 e2e: add dual-view (calendar/matrix) switching tests
- View toggle button visibility and active state
- Matrix view renders time slots and date columns
- Navigation buttons (prev/this-week/next)
- Empty cell click opens create form
- Switch back to calendar preserves FullCalendar

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-02 08:44:12 +08:00