REPLACEQA BLOG EXAMPLES — NOVEMBER 2026

These are disposable teaching fixtures, not a production application.
Requires Node.js 22, npm and (for the email example) Docker.

Quick start, from this directory:
  npm ci
  npx playwright install chromium
  npx playwright test tests/journey.spec.js

The test configuration starts the local fixture on 127.0.0.1:4319 and stops
it afterward. Do not run a separate server when using that configuration.
For interactive inspection instead: npm start

Examples (Linux/macOS shell syntax):
  npx playwright test tests/manual.spec.js
  DEMO_FAULT=toggle npx playwright test tests/manual.spec.js
  npx playwright test tests/calculator.spec.js
  DEMO_FAULT=wrong-total npx playwright test tests/calculator.spec.js
  npx playwright test tests/navigation.spec.js
  DEMO_FAULT=deep-link npx playwright test tests/navigation.spec.js
  DEMO_FAULT=first-request DEMO_RETRIES=1 npx playwright test tests/retry.spec.js
  DEMO_FAULT=first-request DEMO_RETRIES=1 DEMO_STRICT=1 npx playwright test tests/retry.spec.js

Email example, isolated Mailpit instance:
  docker run -d --rm --name replaceqa-blog-mailpit -p 127.0.0.1:4325:8025 -p 127.0.0.1:4326:1025 axllent/mailpit:v1.32.0
  npx playwright test tests/signup.spec.js --grep 'signup verifies'
  DEMO_FAULT=expired npx playwright test tests/signup.spec.js --grep 'expired link'
  DEMO_FAULT=no-mail npx playwright test tests/signup.spec.js --grep 'missing message'
  docker stop replaceqa-blog-mailpit

The missing-message command intentionally exits nonzero. Local SMTP capture
does not test delivery to real mail providers. The demo stores accounts in
memory; stopping its process removes all of them. Its session cookie is a
teaching shortcut, not an authentication implementation to reuse.

Full evidence matrix (start Mailpit first): npm run matrix
This runs healthy and deliberately broken versions and checks their expected
exit statuses. evidence.json records the results. Detailed reports are in
matrix-results/; evidence.json contains the durable aggregate. Faults that should be caught
must cause actual assertion failures. A matrix success means the examples
behaved as documented, not that every individual invocation passed.

The AI-authored candidate and the deliberately weakened comparison are
identified in generation.json. This is not a benchmark of AI products.

journey-workflow.yml is a GitHub Actions TEMPLATE. It was reviewed against
official documentation; hosted scheduling, notifications and artifact uploads
were not executed during local validation. Copy it only after adapting the
test to your own deployment and setting JOURNEY_BASE_URL. It does not implement
missing-run alerting. Do not point it at the loopback fixture from a hosted runner.

The archive's evidence.json contains local fixture results, no customer data.
