Playwright · Middle · Question 15 of 75

Why prefer a setup project over globalSetup?

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.

Further reading

Problem with a question

Playwright · Middle · question 15

Test yourself

Take the Playwright · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz