Skip to content

Commit 058ca24

Browse files
committed
use id for data-testId
1 parent 0f612f9 commit 058ca24

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

redisinsight/ui/src/pages/autodiscover-cloud/utils.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,10 @@ export const getSelectionColumn = <T extends object>({
1818
size,
1919
isHeaderCustom: true,
2020
header: ({ table }) => (
21-
<Table.HeaderMultiRowSelectionButton
22-
table={table}
23-
data-testid="row-selection"
24-
/>
21+
<Table.HeaderMultiRowSelectionButton table={table} data-testid={id} />
2522
),
2623
cell: ({ row }) => (
27-
<Table.RowSelectionButton
28-
row={row}
29-
data-testid={`row-selection-${row.id}`}
30-
/>
24+
<Table.RowSelectionButton row={row} data-testid={`${id}-${row.id}`} />
3125
),
3226
}
3327
}

redisinsight/ui/src/pages/autodiscover-sentinel/sentinel-databases/useSentinelDatabasesConfig.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export const colFactory = (
196196
}
197197
return cols
198198
}
199+
199200
export const getRowId = (row: ModifiedSentinelMaster) => row.id || ''
200201

201202
export const useSentinelDatabasesConfig = () => {

0 commit comments

Comments
 (0)