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

Cypress interprets underscores in URL as formatting instructions on frontend #28100

Closed
josh-atkins opened this issue Oct 20, 2023 · 2 comments · Fixed by #28583
Closed

Cypress interprets underscores in URL as formatting instructions on frontend #28100

josh-atkins opened this issue Oct 20, 2023 · 2 comments · Fixed by #28583
Labels
good first issue Good for newcomers pkg/reporter This is due to an issue in the packages/reporter directory type: bug

Comments

@josh-atkins
Copy link

Current behavior

When I visit a page in a Cypress test that includes underscores, such as "http://localhost:3000/__testing__/", the Cypress frontend interprets the underscores as formatting instructions (i.e. as markdown). This causes the frontend to report the URL as "http://localhost/testing/", with "testing" displayed in bold.

This is problematic because it provides a distraction when debugging e.g. it suggests that Cypress is following a different route than what is provided in the test.

image image

Desired behavior

The Cypress frontend should interpret the URL literally and not interpret any formatting instructions from the original string.

Test code to reproduce

A simple test should demonstrate the error when viewed in the Cypress frontend.

describe('the http://localhost:3000 website', () => {

    it('should visit /__testing__/', () => {

        cy.visit("http://localhost:3000/__testing__/");

    })

});

Cypress Version

13.3.1

Node version

20.5.1

Operating System

macOS 13.3.1

Debug Logs

No response

Other

No response

@jennifer-shehane jennifer-shehane added type: bug pkg/reporter This is due to an issue in the packages/reporter directory good first issue Good for newcomers labels Oct 20, 2023
@jennifer-shehane
Copy link
Member

I agree, this is not great. We're open to a pull request to fix it. Not sure how straightforward that may be.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 17, 2024

Released in 13.6.3.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.6.3, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers pkg/reporter This is due to an issue in the packages/reporter directory type: bug
Projects
None yet
2 participants