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
Updated from version 8.4.0 to 9.0.0 and rerun test.
What happened:
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
at Timeout.<anonymous> (file:///.../frontend/node_modules/@vitest/runner/dist/index.js:44:16)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name `/upload/i`
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
I tried the hidden: true option, but there was no change.
Reproduction:
Problem description:
Suggested solution:
The text was updated successfully, but these errors were encountered:
Can you please share a minimal reproduction? I tried reproducing this one with the latest RTL version which is using @testing-library/[email protected] and this issue didn't reproduce.
I think the best solution would be to patch @testing-library/react v12/13 to allow for @testing-library/dom v8 & v9, but I don't think it's maintained anymore since it's two major releases behind 😢 .
@testing-library/dom
version: 9.0.0Relevant code or config:
What you did:
Updated from version 8.4.0 to 9.0.0 and rerun test.
What happened:
I tried the
hidden: true
option, but there was no change.Reproduction:
Problem description:
Suggested solution:
The text was updated successfully, but these errors were encountered: