fix(web+config): E2E 测试发现的问题修复
- 排班状态过滤 'active' → 'enabled'(与后端 validation.rs 一致) - 全局 403 拦截器不再弹出"权限不足" toast(AuthButton 已隐藏入口) - 角色未关联菜单时回退显示全部(避免种子数据阶段菜单空白)
This commit is contained in:
2
apps/web/src/test/fixtures/healthFixtures.ts
vendored
2
apps/web/src/test/fixtures/healthFixtures.ts
vendored
@@ -223,7 +223,7 @@ export function createScheduleFixture(overrides: Record<string, unknown> = {}) {
|
||||
end_time: '12:00',
|
||||
max_appointments: 10,
|
||||
current_appointments: 3,
|
||||
status: 'active',
|
||||
status: 'enabled',
|
||||
created_at: '2026-04-01T10:00:00Z',
|
||||
updated_at: '2026-04-01T10:00:00Z',
|
||||
version: 1,
|
||||
|
||||
@@ -359,7 +359,7 @@ const mockSchedules = Array.from({ length: 8 }, (_, i) => ({
|
||||
end_time: i % 2 === 0 ? '12:00' : '17:00',
|
||||
max_appointments: 10,
|
||||
current_appointments: i % 3,
|
||||
status: 'active',
|
||||
status: 'enabled',
|
||||
created_at: '2026-04-01T10:00:00Z',
|
||||
updated_at: '2026-04-01T10:00:00Z',
|
||||
version: 1,
|
||||
|
||||
Reference in New Issue
Block a user