Intercept gRPC support #19085
Unanswered
jstorm31
asked this question in
Questions and Help
Replies: 2 comments 4 replies
-
Curious here but did you ever end up solving this?? I am running into the same thing currently! |
Beta Was this translation helpful? Give feedback.
3 replies
-
I'm also curious if you found a solution for your question? I'm working on E2E tests with mock data. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have Cypress tests for a web app with a gRPC backend API and would like to intercept API calls with
cy.intercept
. The interception works fine, but I'm struggling with defining response body so our grpc client accepts it. We use grpc-web client library.There is cypress-protobuf plugin, but doesn't work out with neither our app nor
cy.intercept
. Therefore, we create the grpc messages directly and serialize it to binary representation.As I said, the intercept works fine, but the app fails on grpc client failing to decode the response. That implies the issue is in a combination of correct
body
representation and maybecontent-type
.I wonder whether there are any folks that successfully use intercepts for grpc API calls or the Cypress team plans any built-in support for it. Thx 🙌
Beta Was this translation helpful? Give feedback.
All reactions