For example if user dont fill this field and press "continue" button, this error message will pop up. I wonder is there a way with Cypress that I check that error message was displayed?
Kind regards
For example if user dont fill this field and press "continue" button, this error message will pop up. I wonder is there a way with Cypress that I check that error message was displayed?
Kind regards
You can make this assert : cy.get('input:invalid').should('have.length', 1)
See https://github.com/cypress-io/cypress-documentation/pull/1919/files how to assert the validation message