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

Assertions are incorrectly applying markdown and adding asterisks #24960

Closed
JamShady opened this issue Dec 4, 2022 · 3 comments · Fixed by #28583
Closed

Assertions are incorrectly applying markdown and adding asterisks #24960

JamShady opened this issue Dec 4, 2022 · 3 comments · Fixed by #28583
Labels
E2E Issue related to end-to-end testing good first issue Good for newcomers type: user experience Improvements needed for UX

Comments

@JamShady
Copy link

JamShady commented Dec 4, 2022

Current behavior

Given the current basic code:

        cy.get('input')
            .should('have.value', initial)

            .clear()
            .type(update)
            .then(() => {
                expect(field.value()).to.equal(update)
            })

The following output is generated:
image

As you can see, the required value is displayed with asterisks, which I assume is a formatting error and it's actually supposed to make the value bold.

Desired behavior

Presumably the required value should show up as bold, rather than surrounded by asterisks.

Test code to reproduce

expect('foo').to.equal('bar')

should generate
image

Cypress Version

11.2

Node version

19

Operating System

Win 11

Debug Logs

No response

Other

No response

@nagash77 nagash77 added E2E Issue related to end-to-end testing Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. and removed routed-to-e2e labels Apr 19, 2023
@jennifer-shehane jennifer-shehane changed the title expect(x).to.equal(y) is formatted incorrectly in Spec Output Assertions are incorrectly applying markdown and adding asterisks Dec 4, 2023
@jennifer-shehane jennifer-shehane added good first issue Good for newcomers type: user experience Improvements needed for UX and removed Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. labels Dec 4, 2023
@jennifer-shehane
Copy link
Member

Current behavior

Assertions are incorrectly applying markdown and adding asterisks.
image (6)

Desired behavior

Shouldn't show asterisks, instead it should bold the text.

Test code to reproduce

it("test", () => {
    expect("smooth").to.eq("smooth")
});

Cypress Version

13.6.0

@jennifer-shehane
Copy link
Member

There was a comment in the other thread that this may be a regression from #22537

@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
E2E Issue related to end-to-end testing good first issue Good for newcomers type: user experience Improvements needed for UX
Projects
None yet
3 participants