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

add support for handling event streams / server sent events / SSE #2054

Merged
merged 5 commits into from
Jun 28, 2018

Conversation

brian-mann
Copy link
Member

@brian-mann brian-mann commented Jun 28, 2018

fixes #1440
fixes #1111

@brian-mann brian-mann merged commit dc28e87 into develop Jun 28, 2018
@jennifer-shehane jennifer-shehane deleted the issue-1440 branch July 24, 2018 16:56
@jijain786
Copy link

jijain786 commented Sep 8, 2019

@jennifer-shehane @brian-mann

can you please advise where I can find the documentation/sample code for the SSE support from cypress - i tried to search on cypress.io and went through some of the commands like https://docs.cypress.io/api/commands/route.html

@drumslave-git
Copy link

drumslave-git commented May 12, 2020

Hi.
I also have issue with EventSource.
Peace of app code

var source = new EventSource('%REQUEST_URL%' + userId);
				source.onmessage = function(event) {
					// code here
				};
				source.onerror = function(event) {
					// code here
				};

In my spec

cy.route('GET', '**%REQUEST_URL% **').as('cleanup');
cy.wait('@cleanup').its('status').should('eq', 200)

And wait fails because request never happen, I can see it if Firefox debug console.

OS: Windows
Browser: Firefox
Cyoress: 4.5.0

@jennifer-shehane
Copy link
Member

If you're experiencing a bug concerning SSE in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. Commented in a closed PR is not the best place for our team to address an issue.

Also, check out our community chat, it can be helpful for debugging or answering questions on how to use Cypress.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants