-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Support for graphql in e2e testing #3565
Comments
There is a very large thread discussing workarounds here: cypress-io/cypress-documentation#122 But yes, we actually did not have a specific issue requesting support for GraphQL specifically. It's definitely on our Roadmap! |
@jennifer-shehane any news on the roadmap about when/if graphql support will be integrated? Is https://github.com/tgriesser/cypress-graphql-mock the way to go? The problem (for me at least) is that the @tgriesser are you planning on integration apollo-angular (XHR) support as well? Your solutions seems promising, but I can't get it to work with Angular |
Just wanted to check the status/roadmap on this. is https://github.com/tgriesser/cypress-graphql-mock still being maintained? comments in cypress-io/cypress-documentation#122 seem to indicate others are not getting responses on that solution and are now forking and modifying the code to their needs. Is there a timeline for native GQL support in Cypress? |
We have a solution we've been iterating on internally for our own GraphQL development that we're hoping to open source sometime soon. No specific timeline we can commit to, but it's something I personally would like to get released, especially since the |
@tgriesser, I'm of the aforementioned folks who have forked and modified your I'm currently in the middle of adapting this stuff for our internal test tooling, but I'd hate to invest much more effort in this if it's about to change dramatically, or if we're building on top of something that might be fundamentally flawed. Thanks! |
Current behavior:
As far as I know there is no out of the box solution for stubbing graphQL requests.
With common api we can just do
route('GET', 'someurl', dataToReturn)
Its really great and easy.
However, I can't find any clear, simple and documented solution to do something like this for graphQL. I understand that it may be a problem because it works differently.
But it could be great to have an ability to stub requests to graphQL.
Thank you
Desired behavior:
Want to have an easy and clear handling of graphQL stubbing.
The text was updated successfully, but these errors were encountered: