Skip to content

Fix parametrise https ignore#888

Closed
adskyiproger wants to merge 1553 commits intodevelopfrom
fix-parametrise-https-ignore
Closed

Fix parametrise https ignore#888
adskyiproger wants to merge 1553 commits intodevelopfrom
fix-parametrise-https-ignore

Conversation

@adskyiproger
Copy link
Contributor

Overview

This pull request adds support for configuring Playwright's HTTPS error handling via the IGNORE_CA environment variable. When IGNORE_CA=1 is set, Playwright will ignore HTTPS errors such as untrusted, self-signed, or staging CA certificates. This improves test stability when running in environments that use certificates not trusted by default (e.g., Let's Encrypt staging, test CA, or self-signed certs).

Details

  • In Playwright configuration, ignoreHTTPSErrors is now set based on the value of process.env.IGNORE_CA.
  • When IGNORE_CA=1, Playwright will skip certificate trust errors during browser tests.
  • No functional change for environments that use publicly trusted certificates or do not set this environment variable.
  • This setting is particularly useful in CI/CD pipelines and staging environments.

Motivation & Context

  • GitHub Actions and other CI runners use fresh environments that do not trust staging/test/root CAs by default.
  • Previously, Playwright tests would fail on domains using non-public or staging certificates.
  • Developers and CI jobs can now toggle HTTPS error handling without modifying code/config between environments.

Usage

Set the environment variable IGNORE_CA=1 in your CI job or local environment to enable this behavior:

env:
  IGNORE_CA: '1'

Or via the command line:

IGNORE_CA=1 npx playwright test

Example Change

// Ignore HTTPS errors if IGNORE_CA=1 (for CI/staging SSL)
ignoreHTTPSErrors: process.env.IGNORE_CA === '1',

Additional Information

  • No breaking changes.
  • No impact on production or environments with trusted certificates.

jamil314 and others added 30 commits June 3, 2025 16:34
* feat: copy country config changes

* fix: sync countryconfig

* chore: bump up toolkit

* fix: birth validation

* fix: v2-birth

* fix: e2e v2-birth

* fix: month in v2 search

* feat: implement v2-application tests

* fix: print test

* chore: bump up toolkit

* fix: rest api and navigation tests

* fix:rejection reason

* fix: add read event to birth

* fix: add read action to tennis-club-membership

* fix: bump up toolkit

* fix: e2e: dont hardcode userId

* fix: use id from token

* fix: change the way assigned
* feat: add workqueue scopes

* feat: add workqueues

* update scopes to use new syntax

* feat: add assigned-to-you query

* fix: add icons

* fix: give workqueue scopes to FA

* fix: update queries

* chore bump up toolkit

* chore: bump up toolkit

* chore: update toolkit and fix queries

* fix: align with farajaland

* chore: bump up toolkit
Fix test which started failing after workqueue changes
* init-release workflow will create the branch only

* Correction made , some corner cases handeled
* Add signature in assests and testcases for new user creation as registrar

* chore: clean up

* chore: use more specific selectors

---------

Co-authored-by: Tameem Bin Haider <tameem.haider@dsinnovators.com>
Since file is passed as-is, process.env is never invoked and client crashes
github-actions bot and others added 29 commits July 15, 2025 11:30
fix: v2-advanced-search/7-search-birth-event-declaration-stauts.spec.ts
advanced search birth child event e2e added
fix: blur after filling with data-testid
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

Successfully merging this pull request may close these issues.