Playwright · Junior · Question 73 of 75

What does the webServer option in the config do?

Show the answer

Correct answer: Starts the app before tests and waits for its URL

Explanation

It runs a command like npm run dev, waits until the URL responds, and stops it afterwards. reuseExistingServer reuses a server you already started locally.

Further reading

Problem with a question

Playwright · Junior · question 73

Test yourself

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

Take this quiz