kindergarten_java/lesingle-edu-reading-platform-frontend/tests/e2e/teacher/fixtures.ts

71 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-03-17 10:38:51 +08:00
/**
* E2E -
*/
export const TEACHER_CONFIG = {
account: 'teacher1',
password: '123456',
dashboardPath: '/teacher/dashboard',
};
export const TEST_DATA = {
schedule: {
classId: 1,
courseId: 1,
scheduledTime: '09:00',
repeatType: 'WEEKLY',
},
lesson: {
title: `测试授课_${Date.now()}`,
status: 'pending',
},
studentRecord: {
focus: 4,
participation: 5,
interest: 4,
understanding: 3,
notes: '测试评价记录',
},
feedback: {
designQuality: 4,
participation: 5,
goalAchievement: 4,
pros: '课程设计很好',
suggestions: '可以增加更多互动环节',
},
task: {
title: `测试任务_${Date.now()}`,
description: '测试任务描述',
taskType: 'READING' as const,
targetType: 'CLASS' as const,
startDate: '2026-03-16',
endDate: '2026-03-30',
},
taskTemplate: {
name: `测试模板_${Date.now()}`,
description: '测试任务模板描述',
taskType: 'READING' as const,
defaultDuration: 7,
},
growth: {
type: 'reading',
description: '测试成长记录',
score: 5,
},
};
// 班级年级映射
export const GRADE_MAP: Record<string, string> = {
nursery: '托班',
small: '小班',
middle: '中班',
big: '大班',
};
// 教师角色映射
export const TEACHER_ROLE_MAP: Record<string, string> = {
MAIN: '主班',
ASSIST: '配班',
CARE: '保育',
};