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>
- 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>
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>