pm4ai

Testing

Testing conventions and strategies

Testing

  • Run only failing tests first, verify 2-3x, stop
  • Full suite only when explicitly asked
  • Pre-test: bun fix passes, kill stale processes (pkill -9 -f "next"), clean test results (rm -rf test-results)
  • Verify before scaling — never run full suites blindly

Playwright E2E

ScopeTimeoutKill
Single test5s10s
Single file8s/test30s
Full suite10s/test180s

Troubleshooting:

SymptomFix
Hangs on fill()/click()Check element visible/enabled
networkidle hangsUse waitForSelector() instead
Element not foundCheck testid on element vs parent
Flaky counts--workers=1

On this page