Skip to content

Cypress 'have.text' assertion doesn't ignore whitespace #174

Description

@scottohara

should("have.text", ...) doesn't ignore whitespace, so any DOM elements where our markup includes child elements or the content is otherwise formatted/indented have to use "contain.text".

See: cypress-io/cypress#3887

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions