Is the .should(‘exist’) assertion redundant on Cypress?
For your usecase of asserting whether an element exists, they are indeed redundant. .contains() yields a DOM element and according to documentation, .should yields the same element it was given as an input. There are some exceptions when .should yields different element (as you can see in the documentation) but in case of using should(‘exist’), … Read more