AutoMax
Best practices

Keeping suites fast

Where time goes in a suite and the AutoMax settings that recover it.

What you'll learnThe main costs in a suite and the levers AutoMax provides for each.
CostLever
logging in per scenarioauth.storageState: true and @user:<role>; login happens once per pool user
browser startupkeep API scenarios @api so they never open a browser
slow third-party networkHAR replay with --strict; offline CI
screenshotsstep policy only for @regression; onlyOnFailure on slow environments
locator timeoutsheal contexts resolve in seconds, not minutes; fix the primary locator when a heal repeats
serial suites--workers, --shard, fullyParallel by default; use @mode:serial only where state demands it
retries hiding slownessinsights show lists the slowest and flakiest scenarios; fix, do not retry

Measure with run --json (durations in summary.json) and the dashboard's duration chart.