-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: storybook v7 + Cypress 12.9 component Testing broken for React #22046
Comments
@yann-combarnous Do you have a reproduction you can share? I've created what I think is a fix at #22085 but I don't have an easy way to test it. Thanks! |
Tried to create a repro with CodeSandbox, but it seems cypress cannot be run there, even in headless mode due to missing docker dep. Any sandbox environment you would know that supports it ? |
@shilman , I manually edited |
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.6 containing PR #22085 that references this issue. Upgrade today to the
|
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.6 containing PR #22085 that references this issue. Upgrade today to the
|
Describe the bug
With Storybook v6, we were using the following guide to run Cypress component tests with Storybook: https://www.cypress.io/blog/2021/05/19/cypress-x-storybook-2-0/#header
We tried to upgrade to v7, and encountered errors in Cypress when running our tests:
We use Cypress 12.9.0 and Storybook 7.0.3
To Reproduce
Here is a simple test having this issue:
System
Additional context
This is the piece of code from Storybook where module is not defined:
The text was updated successfully, but these errors were encountered: