How to test web-socket requests in Cypress. #30162
Unanswered
sreenarayan
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to intercept a web-socket connection, For this particular functionality(If I click download file button , web-socket request will trigger) this will generate auth_token cookie also. I need to establish web socket connection with auth_token cookie. And validate the web-socket messages as a success.
My script : The error I'm receiving is handshake. couldn't able to establish the connection.
it("Verify Zone geom file download functionality", () => {
// Click the download file button
cy.get('.dwnld-files-section-geom-img').click();
cy.get('.dwnld-geom-files-section > :nth-child(1) > p').click();
Beta Was this translation helpful? Give feedback.
All reactions