scottohara / loot

An implementation of some of the core MS Money features in Ruby on Rails
MIT License
4 stars 3 forks source link

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

Open scottohara opened 4 years ago

scottohara commented 4 years ago

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: https://github.com/cypress-io/cypress/issues/3887