当我使用cy.visit()时,赛普拉斯会将/ __ /#/添加到链接中,

时间:2020-03-20 03:00:30

标签: cypress

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

0 个答案:

没有答案