任何人在cypress中都有使用Google登录的示例
发布时间:2022-06-05 03:35:33 329
相关标签: # chrome
我需要为使用联合登录(Google)的应用程序编写一个cypress测试。即使在我禁用了chromeWebSecurity之后,我仍收到CORS错误。有人有这方面的示例代码吗?
describe('log in with google', ()=>{
it('should work', ()=>{
cy.visit('http://localhost:3000/')
cy.contains('Log in with Google').click()
cy.get("input#identifierId").type('gohawks12x3@gmail.com{enter}');
cy.wait(5000);
cy.get("input[@type=password]").type('{enter}');
})
})
谢谢
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报