33 / 139 · 13 Browser Automation with Playwright · Quick Start Preparation: Turn Discovery into a Scaffolding-Ready Package← prev⊞ allnext →☰ Read as one page
2.13Step 9 — Decide the artifact and debugging conventions
The scaffold should create predictable local outputs.
Use:
artifacts/
reports/
screenshots/
videos/
traces/
logs/
And the future runbooks should explain:
- how to run one test
- how to open the HTML report
- how to inspect traces
- how to regenerate auth state
- how to run only API tests
- how to switch environment
Redaction rule
The scaffold should encode:
- never log raw secrets
- never log full tokens
- redact auth headers
- redact cookies
- redact PII
- redact session values in logs and artifacts where practical