feat(e2e): add data-testids to components

This commit is contained in:
QAComet
2024-04-21 17:15:27 -06:00
parent 389db59b28
commit cd09843b99
7 changed files with 59 additions and 11 deletions
+3
View File
@@ -9,6 +9,7 @@ type Props = {
onKeyDown?: KeyboardEventHandler<HTMLInputElement> | undefined;
className?: string;
spellCheck?: boolean;
"data-testid"?: string;
};
export default function TextInput({
@@ -20,9 +21,11 @@ export default function TextInput({
onKeyDown,
className,
spellCheck,
"data-testid": dataTestId,
}: Props) {
return (
<input
data-testid={dataTestId}
spellCheck={spellCheck}
autoFocus={autoFocus}
type={type ? type : "text"}