-
-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Relevant code or config:
<div
id="foo-123"
aria-labelledby="foo-label"
> ... </div>
<label
id="foo-label"
for="foo-123"
>Foobar</label>
What you did:
Tried this in the Testing Playground: https://testing-playground.com/?markup=DwEwlgbgBGILwCIBmB7FBaAjAJgMwKgEMAnMQ9AG0ICMBTCi2kagT0VQyrooQD4oAdEKjAA9OAi8AUMC70Y8ZGko16BVMXbKc%2BXgDE01EmLkVeQA&query=M4YwTgphB2B0DmEAuAhAngGQIYCMIBsAVCADyQAoB6AMwHtacsxKBLASiA
What happened:
It recommends screen.getByText
even though screen.getByLabelText
works and should be preferred... I think.
winterlamon
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working