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

bi-directional WebSocket support and/or message queue/pools #199

Closed
StephenOTT opened this issue Aug 11, 2016 · 1 comment
Closed

bi-directional WebSocket support and/or message queue/pools #199

StephenOTT opened this issue Aug 11, 2016 · 1 comment
Assignees
Labels
topic: cy.intercept() type: duplicate This issue or pull request already exists

Comments

@StephenOTT
Copy link

StephenOTT commented Aug 11, 2016

Would be great to have the ability to watch a bi-directional web socket to process messages from the back-end as they are received.

Use Case:

User preforms a action through the front-end which actions several back-end events. It would be great if we could monitor that these different events did occur (there is an endless amount of different events and combinations of events).

What would be great if there was a simple message pool/queue or a way to "monitor" a bi-direcitonal websocket and capturing the messages received from the back-end.

We would then write tests to check if those events are being executed by looking at the socket/pool/queue and seeing if the events were received after X user actions.

@jennifer-shehane jennifer-shehane added the type: feature New feature that does not currently exist label Aug 24, 2016
@jennifer-shehane jennifer-shehane added the stage: proposal 💡 No work has been done of this issue label Feb 11, 2019
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: proposal 💡 No work has been done of this issue labels Jun 24, 2020
@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: needs review The PR code is done & tested, needs review stage: work in progress labels Aug 25, 2020
@flotwig
Copy link
Contributor

flotwig commented Mar 26, 2021

Agree that this would be good to have, and with the introduction of request events on cy.intercept in 7.0.0, I think we have a good API precedent for adding websocket mocking.

For now, I'm going to close this issue and fold it into #2492 since that one has a bit more support, but covers the same ground as this.

@flotwig flotwig closed this as completed Mar 26, 2021
@jennifer-shehane jennifer-shehane added type: duplicate This issue or pull request already exists and removed stage: needs review The PR code is done & tested, needs review type: feature New feature that does not currently exist topic: network labels May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cy.intercept() type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants