describe("A full test of the reddit site", function(){
it("visits the page and logs in", function(){
cy.visit("www.reddit.com/")
cy.get("a:contains('log in')").click()
var url = cy.url()
console.log(url)
})
})
The screenshot of how the exact url looks
它转到http://www.reddit.com/__/#/tests/integration/examples/reddit.js,而不是reddit.com