The crash log
Field notes from breaking software on purpose: Playwright patterns, CI pipelines, and the testing strategy behind them.
Posts
-
How to Be a -10x Engineer With an AI Agent
Wasting 400 engineering hours a week used to take effort. With a coding agent, one engineer can do it before lunch. A field guide, and the antidote.
-
What Late QA Really Costs
The 1-10-100 bug curve is folklore. Late QA still costs you, in rework, escaped defects and regulator fines.
-
How to Sandbox Your AI Coding Agent with a Dev Container
Run your AI coding agent without permission prompts but inside a dev container, with deny rules, read-only mounts, an egress allowlist and no prod credentials.
-
How to Cut QA Busywork with Rules Files, Agent Skills and MCP Servers
A rules file for house style, skills for routine workflows, an MCP server for Jira: copy-paste setup for Claude Code and Cursor, with writes on a leash.
-
How to Run Preview Environments per PR With a Fixed Pool of Slots
A live preview URL for every pull request without a backend per branch: a fixed slot pool, a GitHub Actions claim step, Playwright on the slot, auto-release.
-
Coverage Is a Health Signal, Not a Per-PR Gate
Making every PR raise the coverage number rewards padded tests. Gate the patch, read the project trend, and coverage starts telling you the truth.
-
Test Database Isolation in pytest: Reads Share, Writes Get Their Own
Share one test database and tests leak state into each other. Give each its own and the suite crawls. Match pytest fixture scope to what each test does.
-
Every Integration Test Has the Same Five Parts
Two questions to ask before you write a test, then the five parts every one shares, worked through a create-payment test that checks the ledger.
-
The Golden Rule of Mocking: Mock the Boundary, Not the Code
Mock the payment provider at the HTTP boundary, not your own client class. A TypeScript and MSW example of tests that can actually catch a Stripe bug.
-
Playwright Page Factory + Composition: Scaling a Vanilla POM
Combine a page factory, composition pattern, skipGoto navigation, and a Playwright fixture, so specs stay thin as the suite grows.
-
AI Code Smells: A Review Checklist
AI coding assistants fill gaps with plausible-looking code. Nine recurring AI code smells to catch in review, and what to look for when you spot each one.
-
How to Test Feature Flags Without Testing 2ⁿ Combinations
Every feature flag doubles the test surface: n flags means 2ⁿ configurations. A QA view of why flags are hell to test, and how pairwise testing helps.
-
Vanilla Playwright with Page Object Model: A Clean Setup
A Playwright Page Object Model layout with no BDD and no BasePage: one pageFactory owns navigation, page objects own interactions, specs read like scripts.
-
Run Playwright Tests from a Separate Repository in CI
Keep Playwright tests in their own repository and run them on every PR in your app repo with GitHub Actions, a dual checkout and a least-privilege token.
-
Playwright BDD: Combining Cucumber with Page Objects
Combine Cucumber/Gherkin with the Page Object Model in Playwright so BDD suites stay maintainable instead of decaying into scattered utility functions.
-
Playwright: Interacting with Closed Shadow DOM in iFrames
Force closed shadow roots open with Playwright addInitScript to test web components inside iframes, like embedded payment or ID-verification widgets.
-
Nix Flakes for SDET Setup
Set up a reproducible SDET workstation on macOS, Linux or WSL2 in about five minutes with Nix Flakes, then reuse it in CI with nix develop.