Cypress test: is .contains() equivalent to should(‘contain’)?
The result on your cypress test will be the same if the element with name=planSelect does not contain dummyPlan, that is, the test will fail at this point. The difference between them is that in the first form, using contains(), you’re actually trying to select an element, and the result of cy.get(…).contains() will yield this … Read more