Reputation: 1
What I did :
I tried to do an assertion for a URL and I am getting the following error
Error: cy.url.should is not a function
My code :cy.url.should('contain','#/home')
Upvotes: 0
Views: 385
Reputation: 18650
You are close, you just missed the closing brackets.
cy.url().should('contain','#/home')
Upvotes: 1