Playwright · Senior · Question 58 of 77
How should a team handle tests that need many minutes, like big imports?
- 1Run the import only on production with real files
- 2Test the logic lower; keep one E2E with
test.slow()or a tag - 3Raise the global timeout for all tests to ten minutes
Show the answer
Correct answer: Test the logic lower; keep one E2E with test.slow() or a tag
Explanation
A long E2E test slows every run. Unit and API tests cover the variations; a tagged E2E can run nightly.