Hey everyone, I need help on how I can make a test with multiple pages in a website
s
swift-angle-95455
06/01/2022, 11:14 PM
Using
cy.visit()
? Can you elaborate please? What tech stack are you using?
d
dazzling-afternoon-58652
06/02/2022, 4:55 AM
I'm using NextJS and Sanity io... I tried using multiple cy.visit() twice but I can't use two in one document
s
swift-angle-95455
06/02/2022, 5:07 PM
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.