You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This passesexpect(getByRole("dialog",{name: "Visible"})).toBeVisible();expect(queryByRole("dialog",{name: "Hidden"})).toBeNull();expect(queryAllByRole("dialog",{hidden: true})).toHaveLength(2);// This failsexpect(getByRole("dialog",{name: "Hidden",hidden: true})).not.toBeVisible();
What happened:
Unable to find an element with the role "dialog" and name "Hidden"
@testing-library/dom
version: 7.30.0Relevant code or config:
What you did:
What happened:
Reproduction:
https://codesandbox.io/s/react-testing-library-demo-forked-imxvc?file=/src/hello.js
Problem description:
getByRole
and the like don't seem to be able to find hidden dialogs by name.The text was updated successfully, but these errors were encountered: