storybookjs / testing-vue3

Testing utilities that allow you to reuse your stories in your unit tests
16 stars 9 forks source link

Feature add option to run play from tests #5

Closed fazulk closed 1 year ago

fazulk commented 2 years ago
yannbf commented 2 years ago

Hey @fazulk thanks a lot for your contribution! Unfortunately that broke the composeStory functionality. The component returned by composeStory now does not contain the story, only the global decorator as you can see in Button.spec:

https://user-images.githubusercontent.com/1671563/151341244-4119c6de-1613-410e-a6cb-71c86af04554.mp4

yannbf commented 2 years ago

I updated the examples to include an interactive story so you can make sure the functionality will work! I also added a comment of the challenge of bringing the play function to cypress CT tests. Hopefully you can help out: https://github.com/fazulk/testing-vue3/blob/feature-add-option-to-run-play-from-tests/example/src/input/Input.spec.ts#L15

yannbf commented 2 years ago

Hey @fazulk do you happen to have any update on this PR? Thanks!

yannbf commented 1 year ago

Hey there! This functionality was implemented in the latest version of this package, therefore I'm closing this PR. Thanks for your contribution!