-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Feature Request: findAll #10
Comments
I found a workaround with https://www.npmjs.com/package/query-selector-shadow-dom
|
@msteller-connyun I'm glad you found a workaround. If I would add findAll with shadow path then the recursive search would be very laggy and might take too much time. Showroom is meant for running unit-tests on a single-component level. Happy testing. P.S. I have started working on findAll with one major limitation: until the last '//' shadow path in the search it performs |
I think your major limitation is fine for me, because I need findAll for unit testing data strucutres, like tables. |
@msteller-connyun I would like to know what was your technique of injecting the deep-query script. Was it in the |
Hello @eavichay I did it this way
|
Awesome. I know there are yet undocumented features, but this eventually will be fully documented, perhaps with help from the community. Thanks for the heads-up. |
yeahh... but it’s still painful to use for the selectors an |
👍 |
So.. you closed that ticket. Does this mean there will be no native findAll support in showroom? |
At the moment it’s only possible to query a single element, after the
find
method based onquerySelector
.For testing components with tables, or lists it would be very usefull if there would be an
findAll
all query, based onquerySelectorAll
which returns an array.Example:
The text was updated successfully, but these errors were encountered: