Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] How to pass command line switches to chromium #534

Open
havlicekdom opened this issue Jan 27, 2025 · 0 comments
Open

[question] How to pass command line switches to chromium #534

havlicekdom opened this issue Jan 27, 2025 · 0 comments

Comments

@havlicekdom
Copy link

For my use case, I'd need to pass the --allow-insecure-localhost option to the chromium browser, because of using self signed certificate for the server rendering the components I cover with SB (it's basic Symfony twig components, so no React or Javascript). Is there a way to get those options?

Note: I've tried using both NODE_TLS_REJECT_UNAUTHORIZED=0 as well as

  testEnvironmentOptions: {
    'jest-playwright': {
      ...testRunnerConfig.testEnvironmentOptions['jest-playwright'],
      contextOptions: {
        ignoreHTTPSErrors: true,
      },
    },
  },

and neither of these resolved my issue caused by the certificate.

@havlicekdom havlicekdom changed the title [question] How to command line switches to chromium [question] How to pass command line switches to chromium Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant