cypress chai exclude spectial char when asserting code example
Example: cypress chai exclude spectial char when asserting
cy.get('.c-ledger__row-amount')
.invoke('text')
.invoke('replace', /\u00a0/g, ' ')
.should('eq', 'DKK 15.00')
cy.get('.c-ledger__row-amount')
.invoke('text')
.invoke('replace', /\u00a0/g, ' ')
.should('eq', 'DKK 15.00')