Skip to content

document.querySelectorAll('button#react-aria-:r22:.css-ofddhz') is not a valid selector #7624

Answered by snowystinger
kolorfilm asked this question in Q&A
Discussion options

You must be logged in to vote

I read the example in the linked issue. Are you saying that await userEvent.click(screen.getByTestId('delete-button-0')); somehow translates to await userEvent.click(document.querySelector(button#react-aria-:r22:.css-ofddhz svg)); under the hood? because 'delete-button-0' is not problematic for a test id, nor is it related to the id attribute.

If so, I don't think this is a bug with us, this sounds like a userEvent bug or jsdom.

Have I misunderstood your comment and you suspect there's still a bug on our end?

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@snowystinger
Comment options

@kolorfilm
Comment options

@snowystinger
Comment options

Answer selected by snowystinger
@kolorfilm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants