test(web): TextField

This commit is contained in:
Paul Armstrong
2021-02-14 07:56:10 -08:00
committed by Blake Blackshear
parent 9ba6054140
commit 0a3959af86
2 changed files with 77 additions and 1 deletions

View File

@@ -60,7 +60,10 @@ export default function TextField({
}`}
ref={inputRef}
>
<label className="flex space-x-2 items-center">
<label
className="flex space-x-2 items-center"
data-testid={`label-${label.toLowerCase().replace(/[^\w]+/g, '_')}`}
>
{LeadingIcon ? (
<div className="w-10 h-full">
<LeadingIcon />