소스 검색

test(patient->worklist): add data-testid attribute to each row of worklist table

sw 1 개월 전
부모
커밋
54bae36865
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/pages/patient/components/WorklistTable.tsx

+ 2 - 1
src/pages/patient/components/WorklistTable.tsx

@@ -430,9 +430,10 @@ const WorklistTable: React.FC<WorklistTableProps> = ({
       components={{ header: { cell: ResizableTitle } }}
       dataSource={worklistData}
       rowKey="StudyID"
-      onRow={(record) => ({
+      onRow={(record, index) => ({
         onClick: () => handleRowClick(record),
         onDoubleClick: () => handleRowDoubleClick(record),
+        'data-testid': `row-${index}`,
       })}
       rowHoverable={false}
       rowClassName={(record) =>