diff --git a/src/components/Atomic/SimpleStripTable/SimpleStripTable.tsx b/src/components/Atomic/SimpleStripTable/SimpleStripTable.tsx index 9ff4f2e..a900be0 100644 --- a/src/components/Atomic/SimpleStripTable/SimpleStripTable.tsx +++ b/src/components/Atomic/SimpleStripTable/SimpleStripTable.tsx @@ -31,7 +31,7 @@ const SimpleStripTable: FC = (props) => { const getDataTestId = useCallback( (r: RowType, suffix: string, rowId: number) => { if (r.hasOwnProperty('dataTestId')) { - return r.dataTestId?.concat(suffix) + return r.dataTestId?.concat(`-${suffix}`) } else if (dataTestId) { return dataTestId.concat(`-row-${rowId}-${suffix}`) } @@ -78,7 +78,7 @@ const SimpleStripTable: FC = (props) => { lastRowBorder === false && key === rows.length - 1 && styles.noLastRowBorder, noSidePadding && styles.noLeftPadding, ]} - data-test-id={getDataTestId(r, '-attribute', key)} + data-test-id={getDataTestId(r, 'attribute', key)} > {r.attribute} {r.required && *} @@ -94,7 +94,7 @@ const SimpleStripTable: FC = (props) => { lastRowBorder === false && key === rows.length - 1 && styles.noLastRowBorder, noSidePadding && styles.noRightPadding, ]} - data-test-id={getDataTestId(r, '-value', key)} + data-test-id={getDataTestId(r, 'value', key)} > {r.value} {r.copyValue && (