/**
 * 学校端 E2E 测试 - 测试数据和常量
 */

export const SCHOOL_CONFIG = {
  account: 'school1',
  password: '123456',
  dashboardPath: '/school/dashboard',
};

export const TEST_DATA = {
  class: {
    name: `测试班级_${Date.now()}`,
    grade: '小班',
  },
  student: {
    name: `测试学生_${Date.now()}`,
    gender: 'male',
    birthday: '2020-01-01',
  },
  parent: {
    name: `测试家长_${Date.now()}`,
    phone: '13800138001',
    relation: 'father',
  },
  teacher: {
    name: `测试教师_${Date.now()}`,
    account: `teacher_test_${Date.now()}`,
    password: '123456',
  },
  task: {
    title: `测试任务_${Date.now()}`,
    type: 'reading',
    deadline: '2026-03-20',
  },
  growth: {
    type: 'reading',
    description: '测试成长记录',
    score: 5,
  },
  course: {
    name: `校本课程_${Date.now()}`,
    description: '测试校本课程描述',
  },
  notification: {
    title: `测试通知_${Date.now()}`,
    content: '这是一条测试通知内容',
    receiverType: 'parent',
  },
};

// 班级年级映射
export const GRADE_MAP: Record<string, string> = {
  nursery: '托班',
  small: '小班',
  middle: '中班',
  big: '大班',
};

// 家长关系映射
export const RELATION_MAP: Record<string, string> = {
  father: '父亲',
  mother: '母亲',
  grandfather: '祖父',
  grandmother: '祖母',
};
