【发布时间】:2021-11-23 10:26:34
【问题描述】:
【问题讨论】:
标签: json overriding cypress config
【问题讨论】:
标签: json overriding cypress config
您可以为此使用Cypress.config():
it('some Test', () => {
Cypress.config('chromeWebSecurity', false)
//Rest of the test
})
【讨论】:
cy.log(Cypress.config('chromeWebSecurity')) // true Cypress.config('chromeWebSecurity', false); cy.log(Cypress.config('chromeWebSecurity')) // false 试过这种方式但不影响测试结果,访问嵌入在应用程序中的跨域iframe时仍然失败。 link