react-bare-forms icon indicating copy to clipboard operation
react-bare-forms copied to clipboard

TestingLibraryElementError: Found a label with the text of: Email, however no form control was found associated to that label

Open joegasewicz opened this issue 4 years ago • 0 comments

This is failing due to no for attribute on lables. A Fix would be to reference the name of the text input:

React testing library Error:

TestingLibraryElementError: Found a label with the text of: Email, however no form control was found associated to that label

from https://www.w3schools.com/tags/tag_label.asp

<label for="male">Male</label>

joegasewicz avatar Apr 16 '21 11:04 joegasewicz