We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to add a custom comment at the end of a cypress error but it doesn't seem to work
error message should be overwritten
Cypress.on('fail', (error, runnable) => { error.message += `\nCustom comment: ...` throw error }) describe('failing test', () => { it('should fail on purpose', () => { cy.visit('https://example.com') cy.get('#non-existent-element').should('be.visible') }) })
13.13.3 (tried on multiple versions)
v18.18.2
Microsoft Windows [Version 10.0.19045.5247]
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current behavior
I want to add a custom comment at the end of a cypress error but it doesn't seem to work
Desired behavior
error message should be overwritten
Test code to reproduce
Cypress Version
13.13.3 (tried on multiple versions)
Node version
v18.18.2
Operating System
Microsoft Windows [Version 10.0.19045.5247]
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: