Playwright configuration for running DOMPurify browser tests across Chromium, Firefox, and WebKit.
// Source: https://github.com/cure53/DOMPurify | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/* Playwright configuration for DOMPurify browser tests.
* Runs the QUnit suite in real browsers via Playwright's managed binaries.
*
* Browser coverage:
* npm test -> chromium only (fast local dev / PR feedback)
* npm run test:browser -> chromium + firefox + webkit (full engine coverage)
*
* The CI workflow's "browser-matrix" job runs test:browser on three OS runners
* (ubuntu, macOS, Windows) giving 9 browser/OS combinations in parallel.
*/
const { defineConfig, devices } = require('@playwright/test');
const isCI = Boolean(process.env.CI);
module.exports =
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key