https://cypress.io logo
1. You might be over complicating your test by vis...
# e2e-testing
s
1. You might be over complicating your test by visiting all these different URLs in one
it
block? Are you able to separate out the test into muliple smaller
it
blocks, each with a more specific validation? 2. Your example code comments say that
cy.visit('https://mysite.com/item'
doesn't work but you have already visited
https://mysite.com
and that does work. But they have the same URL origin. I suggest you try to simplify your code using 2 URLs with different origins and get
cy.origin
working there first.