Skip to content

Commit

Permalink
chore: fix lint error in TextField test (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker authored Feb 16, 2024
1 parent a7a9e22 commit 0308d75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/src/components/TextField/TextField.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const renderTextField = ({
}: TextFieldProps = {}): HTMLInputElement => {
render(<TextField label={label || 'text field'} {...props} />);
// no individual assertions needed, as this should throw if the element does not exist
return screen.getByRole('textbox', { name: label as string });
return screen.getByRole('textbox', {
name: label as string
}) as HTMLInputElement;
};

test('should render textfield', () => {
Expand Down

0 comments on commit 0308d75

Please sign in to comment.