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
TestingLibraryElementError: Unable to find an element with the text: Submit Button. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
after the update.
Installed dependencies:
"@testing-library/jest-dom": "^5.16.5"
"@testing-library/react": "^14.0.0"
"@vitejs/plugin-react": "^4.0.0"
"@vitejs/plugin-react-swc": "^3.3.0"
"happy-dom": "^9.10.2",
"vite": "^4.3.4"
"vitest": "^0.30.1"
The text was updated successfully, but these errors were encountered:
I am not a direct user of happy-dom but I experience the following error when updating from v9.9.2 to v9.10.2 in my tests using React Testing Library.
The test tries to access the button via its label (
value
attribute onsubmit
-input)The obviously simple test fails with:
after the update.
Installed dependencies:
The text was updated successfully, but these errors were encountered: