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
Undefined snapshot on test failure #15816
Comments
Maybe because the error happens inside cy.on('window:before:load', (win) => {
console.log('win before load')
Object.defineProperty(win, 'gtag', {
// configurable: false,
get: () => gtag,
set: () => { },
})
})
cy.visit('/index.html') |
Internal Jira issue: TR-762 |
2 tasks
The code for this is done in cypress-io/cypress#16015, but has yet to be released. |
cypress-bot
bot
added
stage: pending release
and removed
stage: work in progress
labels
Apr 15, 2021
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Testing Cypress v7
Reproduction in https://github.com/bahmutov/cypress-spy
The test fails, but when I hover over the failed command shows our failure
snapshot.mp4
The stack:
Relevant code:
Setting the breakpoint:
The text was updated successfully, but these errors were encountered: