cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.02k stars 3.18k forks source link

Add support for mounting storybook CSF stories with @cypress/vue #18765

Open patrickcate opened 3 years ago

patrickcate commented 3 years ago

What would you like?

Add support to Cypress's Vue component testing to mount storybook CSF as components.

This is a basically the same feature request as #16379 but for Vue component testing.

Why is this needed?

Being able to re-use storybook stories in Cypress tests can speed up writing tests.

Other

No response

olemarius commented 2 years ago

This is the only thing missing for me to get vue 3 + cypress + storybook + Vite working.

Alternative is to run the tests in storybook or use the new storybook interaction feature.

Let me know if you need me to set up a test repo, happy to help if needed :-)

lmiller1990 commented 1 year ago

This would be interesting. I'm not sure how the API would look, or how we handle the huge amount of Storybook-specific plugins (like "knobs"). Open to some proposals.