One way to test that is use Chrome and disable Web security in cypres.json:
"chromeWebSecurity": false
Then you could do:
cy.contains("item").should('be.visible').dblclick()
cy.url()
.then((url) => {
expect(url).to.contain('some-string')
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…