We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
querySelector
In WSR we have a table, that when it has no data, it renders null to the dom. React (15) renders null as a Comment Element.
null
Comment
Comment elements don't have querySelector or querySelectorAll.
querySelectorAll
I encountered one of our tests which failed on this line: return Array.from(e.querySelectorAll(selector));
return Array.from(e.querySelectorAll(selector));
unidriver/adapters/jsdom-react/src/index.ts
Line 94 in a8a92cc
Well, I guess the only thing we could do better, is print out a more informative error (instead of TypeError: e.querySelectorAll is not a function)
TypeError: e.querySelectorAll is not a function
we can have: $$ unsupported for element of type comment`.
$$ unsupported for element of type
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Use case
In WSR we have a table, that when it has no data, it renders
null
to the dom.React (15) renders
null
as aComment
Element.Comment
elements don't havequerySelector
orquerySelectorAll
.I encountered one of our tests which failed on this line:
return Array.from(e.querySelectorAll(selector));
unidriver/adapters/jsdom-react/src/index.ts
Line 94 in a8a92cc
Expected Behavior
Well, I guess the only thing we could do better,
is print out a more informative error (instead of
TypeError: e.querySelectorAll is not a function
)we can have:
$$ unsupported for element of type
comment`.The text was updated successfully, but these errors were encountered: