-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Special characters wrongly displayed in runner UI assertions, formatted as markdown #5679
Comments
Verified in 3.8.0. it("prints", () => {
cy.wrap('foo').should('match', /width: (50.*|49.*|48.*)%;/)
}) This is due to our Command logging supporting markdown as explained here: #2134 (comment) So is an unfortunate side effect. |
Hi, can I work on this? |
@gerardjorgensen Yes we would love an open PR - even one that is a work in progress is fine. Check out our contributing doc and ask us if you get stuck. |
I'm unfortunately stuck figuring out where the special character is converted Markdown. I looked at https://github.com/cypress-io/cypress/blob/develop/packages/reporter/src/commands/command.tsx#L106 but from there I'm not sure where to go. |
It's done here, using |
This is still an issue in 9.5.3. |
The code for this is done in cypress-io/cypress#22537, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
Desired behavior:
Special characters properly displayed
Steps to reproduce: (app code and test code)
for e.g. use assertion with regex:
should('match', /width: (50.*|49.*|48.*)%;/)
Versions
3.6.1
The text was updated successfully, but these errors were encountered: