lensesio / cypress-websocket-testing

Test WebSocket connections with Cypress
Apache License 2.0
83 stars 12 forks source link

how to increase stream request timeout more than default command timeout of cypress #12

Closed nehalbadelhafez closed 3 years ago

nehalbadelhafez commented 3 years ago

I need to increase stream request timeout without changing default command timeout, in repo it is written to use wrap but I really don't know how to use a wrap with this option if there an example to help.

nehalbadelhafez commented 3 years ago

I found the solution by adding stream timeout within options.

nehalbadelhafez commented 3 years ago

actually, after a while, it is not working again, so If there is an example to demonstrate how to increase stream timeout with cypress without changing the default command timeout.

dsebastian commented 3 years ago

Hi @nehalbadelhafez , have you tried the example found here? https://github.com/lensesio/cypress-websocket-testing/blob/master/examples/cypress/integration/examples/streamRequest.spec.ts#L73 It shows how to wrap the streamRequest to bypass the timeout.

nehalbadelhafez commented 3 years ago

Hi, sorry I didn't see this example. I will check it, Thank you so much.