silly-laptop-48411
09/20/2022, 7:49 AMts
cy.visit(url).get('.thing').should('not.exist'); // always passes (false positive potentially)
cy.visit(url).get('.first').get('.thing').should('not.exist'); // correctly passes
In this instance, if I change .first
to another name or remove it, then the test is impacted even though it is not a concern or focus of this particular test, rather it is a means to an end.
What the more common or correct approach to this test?