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

Popup escapes cypress #123

Closed
shauvik opened this issue Apr 13, 2016 · 5 comments
Closed

Popup escapes cypress #123

shauvik opened this issue Apr 13, 2016 · 5 comments
Assignees
Labels
type: bug type: unexpected behavior User expected result, but got another
Milestone

Comments

@shauvik
Copy link

shauvik commented Apr 13, 2016

If the page loads a popup on click, here is the current behavior:

  1. In browser test runs, chrome reports a blocked popup
  2. The pop up shows when running via cypress run in headless mode. So, definitely an issue here.
@brian-mann
Copy link
Member

Can you paste in your window.open code that opens the popup?

@brian-mann
Copy link
Member

We will probably need an option on cy.click which enables you to issue a native click like cy.click({native: true}). Browsers (like Chrome) will block simulated event click handlers if they trigger window.open.

Showing the popup in headless mode is probably just a simple oversight, we'll take a look.

@jennifer-shehane jennifer-shehane added type: bug type: unexpected behavior User expected result, but got another labels Apr 13, 2016
@jennifer-shehane jennifer-shehane added this to the 0.15.4 milestone Apr 19, 2016
@brian-mann
Copy link
Member

Windows opening headlessly will be fixed in 0.15.4. The popup blocker problem will be fixed in 0.16.0.

@brian-mann
Copy link
Member

Fixed in 0.15.4.

I'm going to open a second issue related to the pop-up blocker. That will be fixed in 0.16.0.

@jennifer-shehane
Copy link
Member

See issue #125 for blocked pop-up

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug type: unexpected behavior User expected result, but got another
Projects
None yet
Development

No branches or pull requests

3 participants