Skip to content

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

@joegasewicz

Description

@joegasewicz

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions