Hey everyone, I need help on how I can make a test...
# e2e-testing
d
Hey everyone, I need help on how I can make a test with multiple pages in a website
s
Using
cy.visit()
? Can you elaborate please? What tech stack are you using?
d
I'm using NextJS and Sanity io... I tried using multiple cy.visit() twice but I can't use two in one document
s
So, for example, you are on the home page, you press a Link and then it goes to the about page, something like that? You can try using cy.get().click() (clicking the Link) and then assert that your current url matches the url you want.