import { createListPageTests } from '../../test/factories/listPageTests';
import { createFixtureList, createDoctorFixture } from '../../test/fixtures';
import DoctorList from './DoctorList';

const mockDoctors = createFixtureList(createDoctorFixture, 8);

createListPageTests({
  Component: DoctorList,
  apiPath: '/api/v1/health/doctors',
  columns: ['姓名', '科室', '职称'],
  firstRowTexts: ['李医生'],
  totalItems: 8,
  hasCreateButton: true,
  createButtonText: '新建医护',
  hasSearch: true,
  hasPagination: false,
  mockItems: mockDoctors as Record<string, unknown>[],
});
