Skip to content

Does not show more than one .should('contain') assertion when chained after .should('be.visible') #16006

@filipsnopek

Description

@filipsnopek

Current behavior

Test runner shows misleading info when more than one .should('contain') assertion is chained after .should('be.visible')
Consider following code

 cy.get('[data-cy=mobile-payments-template]')
        .should('be.visible')
        .should('contain', 'Something')
        .should('contain', '+420 737 799 983');

This is displayed incorrectly in Test runner (notice the replaced to contain Something with to be visible)
image

When I delete the should('be.visible') assertion, it's displayed properly
image

Desired behavior

Display to contain Something
image

Test code to reproduce

Versions

6.8.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions