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
Add cypress to Storybook CI #8397
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/storybook/monorepo/fddvqollm |
@ndelangen basic setup is done. I also added typescript |
I'm missing a |
I split it into test:e2e-ci and test:e2e-gui |
I've added installing and running cypress in the CI & fixed the tests. I also moved some code into cypress commands. These are unfortunately NOT typescript files. Maybe they can be, if they can be |
"wait-on": "^3.3.0" | ||
}, | ||
"optionalDependencies": { | ||
"@cypress/webpack-preprocessor": "^4.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think optionalDependencies
always get installed by default. Is there a lighter-weight solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are they even optional? For not bothering devs when they bootstrap storybook?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in our yarn bootstrap --install
we do not install optional dependencies.
Tech/split examples generation
I added parallelism to the examples generation script, and running them in 4 batches in circleci now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks GREAT! 💯
@ndelangen How do I run it locally? Can you please update CONTRIBUTING.md with instructions? |
@ndelangen and I paired on integrating cypress in the Storybook repo.
Some notes about what we want to test first
What to e2e test
Run these on the official storybook example
Tasks