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
Try to downgrade to the 23.2.0 version. This solution helped me solve the problem.
First I thought it is a nwsapi bug because when I overwrite the version for jsdom dependencies it works (jsdom uses nwsapi). I just started to be broken for me with jsdom 26.0.0.
@testing-library/jest-dom
version: 6.6.3node
version: 22.13jest
(orvitest
) version: Vitest (3.0.1)npm
(oryarn
) version: pnpm 9.15.4Relevant code or config:
HTML looks like that:
What you did:
await userEvent.click(screen.getByTestId('delete-button-0'));
What happened:
Since I updated jsdom to 26.0.0 I get
SyntaxError: 'button#react-aria-:r22:.css-ofddhz svg' is not a valid selector
.The id seems to be valid and is generated by react-aria.
Reproduction:
Problem description:
According to react-aria this is a valid id.
adobe/react-spectrum#7624 (reply in thread)
Suggested solution:
The text was updated successfully, but these errors were encountered: