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

Tests fail because of exception in console #1605

Closed
Gennadiii opened this issue Apr 17, 2018 · 2 comments
Closed

Tests fail because of exception in console #1605

Gennadiii opened this issue Apr 17, 2018 · 2 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@Gennadiii
Copy link

Operating System: Win10
Cypress Version: 1.4.2
Browser Version: Chrome 65
Is this a Feature or Bug?
This is a bug

Current behavior:
I have exception on my app (third party), I can see it in console: TypeError: Cannot read property 'payload' of undefined
And I don't care about it actually. But Cypress fails tests because of it.
I have next in my support/index.js:
Cypress.on('fail', (err) => { if (err.message.includes('payload')) { return false; } throw err; });
This code never runs.

Desired behavior:
I`d like to ignore such kind of errors since they don't influence the flow I need to test

@bahmutov
Copy link
Contributor

This seems to be unlikely, since we test this feature. Could you create a minimal reproduction example by forking http://github.com/cypress-io/cypress-test-tiny (please install your version of cypress there with npm i -D cypress) and giving us a link, please?

@jennifer-shehane
Copy link
Member

Duplicate issue: #1565

Please do not open duplicate issues, comment on the existing issue and we will respond as quickly as we can.

@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants