Flashwright is Playwright with less waiting. Contributions that make test runs faster without changing what tests observe are the most welcome, along with reports of anything that behaves differently from Playwright.
npm ci
npm run build # or `npm run watch` while you work
npx playwright install chromium
npm run ctest -- tests/page # Playwright's page tests on Chromium
npm run ttest -- <filter> # test runner tests
npm run flint # lint, types and docs, before you commitCLAUDE.md describes the codebase, which is Playwright's: packages, the client/server protocol, and where tests go.
- Keep upstream merges cheap. Change Playwright's files only where time is spent, keep each change small, and mark it with a
Flashwright:comment that says why. Put new code in new files where you can. - Behavior first. A speedup that changes what a test observes needs a documented reason and a way to opt out, and goes in the README's "Differences from Playwright".
- Measure. Compare before and after with
node bench/run.mjs <scenario> <workers> <iterations> stock,forkandnode bench/matrix.mjs; bench/README.md explains the setup. Report medians, not single runs. - Playwright's suites are the regression bar. Run them before and after; a test that fails with your change must fail the same way, at the same rate, with stock Playwright.
- One change per pull request, with the numbers that justify it.
- Semantic commit messages:
perf(test): …,fix(server): …,docs(readme): …. - Bugs that also happen with stock Playwright belong upstream.
Maintainers publish the next version from a clean, pushed main, logged in to npm (with npm login, or an NPM_TOKEN in the environment or in .env):
npm run release -- --dry-run # everything except the publish
npm run release # asks before publishingThe script picks the next version (<Playwright version>-flashwright.<n>), builds from scratch, packs flashwright-core, flashwright and flashwright-test, runs the TodoMVC suite against the packed tarballs, publishes them in dependency order and pushes a v<version> tag. Each package is staged on npm and then approved: npm prints a link to approve it in the browser, so run the release in a terminal. If a link expires, the script offers a new one; after a failed publish, run it again and it continues where it stopped.
By contributing, you agree that your contributions are licensed under the Apache License 2.0, like the rest of the project.