Playwright · Senior · Question 1 of 77
A Playwright suite takes 50 minutes in CI. What is usually the most effective first step?
- 1Raise the test timeout so that slow tests stop failing
- 2Profile the slowest tests and setup, then shard and move checks lower
- 3Remove all assertions so that every test finishes faster
Show the answer
Correct answer: Profile the slowest tests and setup, then shard and move checks lower
Explanation
The report shows where time goes: UI logins, long flows, waits. Fixing those, moving logic checks to API or unit tests, and sharding across machines usually gives the biggest gain.