Cypress - Test Organization and Patterns
Consider this Page Object method:
What will happen if you call
getErrorMessage() {
return cy.get('.error-message')
}What will happen if you call
getErrorMessage().should('be.visible') in a test when the error message is not present on the page?