-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cypress error outputs dead link #6096
Comments
https://on.cypress.io/cy-visit-succeeded-but-commands-fail works correctly. Where are you viewing the logs? How are you running Cypress? Is this perhaps GitHub Actions? |
I am viewing it from Jenkins logs - I'm not actually sure how those formatting sequences got there, though. |
Which version of Cypress are you using? The formatting sequences are to change the color for warnings. For example in Cypress describe('testing cy.origin()', () => {
it('navigates to two different superdomains', () => {
cy.visit('https://github.com/cypress-io/cypress')
cy.visit('https://example.cypress.io') // visit a different superdomain
cy.get('h1').should('contain', 'Kitchen Sink') // fails
})
}) the output is Running the same test in a terminal window ( You may be able to suppress the color changes in Jenkins logs, for instance, if you are running in Linux, with the |
I am using 14.0.1. If you think this is not an issue with Cypress, and is related to my environment, feel free to close this issue as such. |
I can reproduce the issue on GitHub Actions viewing raw logs, where these color formatting escape sequences appear in a lot of places:
On GitHub Actions in the regular log, the colors are interpreted. See https://github.com/MikeMcC399/github-action/actions/runs/13075923590/job/36487946866 for logs. I'm an external contributor and I don't have privileges in this repo to close other user's issues. My advice though is that it is not a documentation issue, nor a Cypress bug. |
https://docs.cypress.io/app/continuous-integration/overview#Colors
|
Description
When a command fails with a cy.origin error (see description), it outputs a URL that is a dead link
URL of Issue(s)
https://on.cypress.io/cy-visit-succeeded-but-commands-fail%1B[0m%1B[90m
Steps to replicate
The link it gives results in a 404.
The hyperlink seems to have some weird escape sequences:
Browser
No response
Device
Additional Information
No response
The text was updated successfully, but these errors were encountered: