Skip to content
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

Storybook + msw + cypress #56

Open
KondakovArtem opened this issue Nov 1, 2021 · 6 comments
Open

Storybook + msw + cypress #56

KondakovArtem opened this issue Nov 1, 2021 · 6 comments

Comments

@KondakovArtem
Copy link

Hello. I connected your addon to the storybook. Everything works great. Now the problem is how you can use it in cypress tests. It appears that cypress does not intercept msw requests configured via msw-storybook-addon

@ArtifexEt
Copy link

As a temporary solution, I suggest you use route, which fortunately works

https://docs.cypress.io/api/commands/route#Syntax

@KondakovArtem
Copy link
Author

thanks. indeed, that works!
Hopefully the route will not be deprecated at all.

@vilkg
Copy link

vilkg commented Oct 9, 2022

Hey! Any plans to make this work in the near future?

@przytrzask
Copy link

I have the same problem and it seems that the route is no longer there

@Yuval-Ben-Arie
Copy link

I am also experiencing the same issue.

@yannbf
Copy link
Collaborator

yannbf commented May 16, 2024

I'm not sure what exactly you are trying to achieve, whether it's visiting Storybook's URL via Cypress, or if it's mounting story components via Cypress CT, or something else. If any of you could provide a minimal reproduction of the issue, I could take a better look. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants