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

Test Failing because of the Uncaught exception on cy.visit #5547

Closed
gurjeetbains opened this issue Oct 31, 2019 · 5 comments
Closed

Test Failing because of the Uncaught exception on cy.visit #5547

gurjeetbains opened this issue Oct 31, 2019 · 5 comments
Assignees

Comments

@gurjeetbains
Copy link

gurjeetbains commented Oct 31, 2019

Hi,

My test fails because of the Uncaught type error when I execute cy.visit(). My next steps execute but still the test fails.
I have used

Cypress.on('uncaught:exception', (err, runnable) => {
    // returning false here prevents Cypress from
    // failing the test
    return false
  })

Cypress

@jennifer-shehane
Copy link
Member

@gurjeetbains This exception is likely being thrown from a plugin included in your application. Have you tried clicking on the error and seeing where the error is being thrown to track down where it originates?

We have one bug fix going out to catch some more of the uncaught exceptions here: #987

Without a reproducible example of this situation, we'll be unable to help unfortunately. Can you provide a complete set of code we can run to reproduce?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Oct 31, 2019
@kuceb
Copy link
Contributor

kuceb commented Oct 31, 2019

I believe we immediately fail the test instead of routing the AUT error through 'uncaught:exception' event, which is a bug. Closely related to work done in #5249

@gurjeetbains
Copy link
Author

image
I can't share the code, but this is the complete error we get when we click on the error @jennifer-shehane

@kuceb kuceb self-assigned this Oct 31, 2019
@cypress-bot cypress-bot bot added stage: investigating Someone from Cypress is looking into this and removed stage: needs information Not enough info to reproduce the issue labels Oct 31, 2019
@brian-mann
Copy link
Member

In the last release 3.6.0 we fixed two cases of this happening, and this is another situation where we missed and we can fix quickly and get this out in 3.6.1.

@gurjeetbains
Copy link
Author

I upgraded cypress and it is fixed now. Thanks for the help @brian-mann @jennifer-shehane @bkucera Closing the issue now. :)

@jennifer-shehane jennifer-shehane removed the stage: investigating Someone from Cypress is looking into this label Dec 24, 2019
@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants