Playwright · Junior · Question 73 of 75
What does the webServer option in the config do?
- 1Starts the app before tests and waits for its URL
- 2Hosts the HTML report on a public web server
- 3Proxies all requests through a local server
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.