Skip to content

Commit 48f719f

Browse files
Pass through data-testid explicitly
1 parent cac9efa commit 48f719f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

extensions/ql-vscode/src/view/common/DataGrid.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,17 @@ interface DataGridRowProps {
5151
focused?: boolean;
5252
children: React.ReactNode;
5353
ref?: React.Ref<HTMLElement | undefined>;
54+
"data-testid"?: string;
5455
}
5556

56-
export function DataGridRow({ focused, children, ref }: DataGridRowProps) {
57+
export function DataGridRow(props: DataGridRowProps) {
58+
const { focused, children, ref } = props;
5759
return (
58-
<StyledDataGridRow $focused={focused} ref={ref}>
60+
<StyledDataGridRow
61+
$focused={focused}
62+
ref={ref}
63+
data-testid={props["data-testid"]}
64+
>
5965
{children}
6066
</StyledDataGridRow>
6167
);

0 commit comments

Comments
 (0)