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
"@testing-library/react": "11.0.2",
"@testing-library/user-event": "^13.0.2",
"@testing-library/jest-dom": "5.11.4"
I am using jest with latest version of CRA.
default Jest environment (JSDom)
I have been refactoring to use screen.getByRole with getByText and previous this test was working, but now it doesn't seem to work. Mainly the error I am getting is the following
Unable to find an accessible element with the role "tabpanel" and name /Panel 1/
and here are the rest of the error (notice the tabpanel where it expects Name as "Tab 1" instead of "Panel 1"):
"@testing-library/react": "11.0.2",
"@testing-library/user-event": "^13.0.2",
"@testing-library/jest-dom": "5.11.4"
I am using jest with latest version of CRA.
default Jest environment (JSDom)
Node version 14
Relevant code or config:
Here is the error I get when I try
I have been refactoring to use
screen.getByRole
withgetByText
and previous this test was working, but now it doesn't seem to work. Mainly the error I am getting is the followingand here are the rest of the error (notice the
tabpanel
where it expects Name as "Tab 1" instead of "Panel 1"):The text was updated successfully, but these errors were encountered: