I am using the jest-playwright library (https://github.com/playwright-community/jest-playwright) to perform end-to-end testing. In the jest.config.js file you can set an option to ignore SSL errors:
contextOptions: {
ignoreHTTPSErrors: true,
}
This works fine when running the tests with jest.
Now, I would want playwright to generate the code when clicking on website elements with the command npx playwright codegen example.com
. However, playwright stops because of the SSL error when opening the website.
Is there an option to ignore SSL errors when using playwright code generation?
playwright.config.ts
for Playwright. But you might want to consider specifying that config in the "code" instead of your global config. – Cloudy