Description
Summary 💡
I've mainly come across this tool through the chrome extension, which is great!
It would be even better if it could support being used against storybook - our stories often match the components we're trying to render in unit tests, so it would hopefully be able to suggest very relevant selectors.
I suspect the issue is because storybook embeds the actual story (which is what I want to look at) in an iframe?
One option would be to build a storybook extension (although doing the selector mode from the chrome extension might be hard). Another would be to allow the root document to be specified for the chrome extension (e.g. I could set it to #storybook-preview-iframe
and it would then run queries etc inside the storybook preview).
Examples 🌈
https://next--storybookjs.netlify.app/official-storybook/?path=/story/addons-a11y-basebutton--label is one of storybook's examples - with the chrome extension, you can't find anything inside the storybook preview.
Motivation 🔦
Our stories often match the components we're trying to render in unit tests, so it would hopefully be able to suggest very relevant selectors.