- AppointmentList / FollowUpTaskList / FollowUpRecordList / ConsultationList - FollowUpTemplateList / DialysisManageList / OfflineEventList - 修复 FollowUpTemplateList 导入路径 bug (../../../ → ../../)
22 lines
835 B
TypeScript
22 lines
835 B
TypeScript
import { createListPageTests } from '../../test/factories/listPageTests';
|
|
import { createFixtureList, createAppointmentFixture } from '../../test/fixtures';
|
|
import AppointmentList from './AppointmentList';
|
|
|
|
const mockAppointments = createFixtureList(createAppointmentFixture, 15, [
|
|
{ id: 'appt-1', patient_name: '张三', doctor_name: '李医生', status: 'pending' },
|
|
{ id: 'appt-2', patient_name: '王五', doctor_name: '赵医生', status: 'confirmed' },
|
|
]);
|
|
|
|
createListPageTests({
|
|
Component: AppointmentList,
|
|
apiPath: '/api/v1/health/appointments',
|
|
columns: ['患者', '医护', '预约日期', '状态'],
|
|
firstRowTexts: ['张三'],
|
|
totalItems: 15,
|
|
hasCreateButton: true,
|
|
createButtonText: '新建预约',
|
|
hasSearch: true,
|
|
hasPagination: false,
|
|
mockItems: mockAppointments as Record<string, unknown>[],
|
|
});
|