Skip to content

required() doesn't mark an input required #9585

Description

@Dreamsorcerer

Is your feature request related to a problem? Please describe.
Testing if an input is correctly required with react-testing-library fails:

const id = within(edit).getByLabelText("Id *");
expect(id).toBeRequired();

Describe the solution you'd like
In addition to adding the * to the label, I'd expect the required attribute to be set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions