Playwright · Middle · Question 15 of 75
Why prefer a setup project over globalSetup?
- 1
globalSetupwas removed from Playwright - 2It has fixtures, traces and shows in the report
- 3It runs faster because it skips the browser
Show the answer
Correct answer: It has fixtures, traces and shows in the report
Explanation
globalSetup is a plain function: no fixtures, no traces, and failures are harder to debug. A setup project is a normal test with all the tooling.