这是我的测试:
describe('settings page test', () =>{
it('tests navigation to settings page from login', () =>{
console.log(Cypress.config().baseUrl)
cy.visit(Cypress.config().baseurl)
console.log(Cypress.config().baseUrl)
果然包含我的baseUrl设置的值。
{
"baseUrl": "https://superniftyurltho.com",
"env": {
}
}
这是错误
cy.visit() must be called with a url
or an options object containing a url as its 1st argumentLearn more
有人知道会发生什么吗?