e2e
Installation
SKILL.md
Efficient end-to-end tests
A browser suite is slow for a few reasons, and each one has a fix you can measure. Measure first, change one thing, measure again. Every number below comes from one real suite (Testate: 13 Playwright projects, five CI shards) unless it says otherwise.
| Change | Before | After |
|---|---|---|
| Serve the built SPA, not the Vite dev server | routes 52.8 s; a blank "Loading..." in 1 load of 25 on the dev server |
20.3 s; 0 blank loads in 36 runs on each of the two builds |
| One CI job split into shards | a flaky test re-ran the whole 6-minute stage | it re-runs one shard; an unchanged shard skips |
| Move two projects out from behind the crawl | slowest shard 4 min 0 s: 110 s of crawl, then 45 s that waited for it | the 45 s run in the 1 min 41 s shard, beside the crawl's |