【发布时间】:2021-07-06 22:42:40
【问题描述】:
我正在使用 jest-playwright 库 (https://github.com/playwright-community/jest-playwright) 执行端到端测试。在 jest.config.js 文件中,您可以设置忽略 SSL 错误的选项:
contextOptions: {
ignoreHTTPSErrors: true,
}
这在使用 jest 运行测试时效果很好。
现在,我希望剧作家在使用命令npx playwright codegen example.com 单击网站元素时生成代码。但是,剧作家在打开网站时因为 SSL 错误而停止。
使用 playwright 代码生成时是否有忽略 SSL 错误的选项?
【问题讨论】:
标签: ssl jestjs code-generation end-to-end playwright