Goals
Keep feedback fast and costs predictable while maintaining strong coverage.Cost Controls
- Scope smartly
- Use
testScope: "diff"for day-to-day iteration - Target subsets with
testIdsfor quick loops
- Use
- Run frequency
- Schedule nightly full runs; run diffs on PRs
- Use
rerunto validate fixes without re-planning
- Reports-first
- Review reports to avoid unnecessary re-executions
- Artifact retention
- Retain only what you need (screenshots/videos) for CI retention windows
Performance Tips
- Local readiness
- Ensure apps start quickly and are reachable on the specified
localPort - Pre-warm test data or seed databases for faster setup
- Ensure apps start quickly and are reachable on the specified
- Selector stability
- Prefer role/label-based selectors to reduce retries and timeouts
- Parallelization
- Keep tests independent for parallel execution in CI
- Deterministic data
- Use stable fixtures to avoid slow flaky retries
Suggested Defaults
- PRs: diff scope, targeted
testIdson critical changes - Main branch: daily full run, artifact retention 7 days
- Hotfixes: focused reruns on impacted suites
Useful Flows
- Diff-only execution
- Subset during iteration
- Rerun without re-planning