IKivan-kozenko -aqa
Try yourself as a QA tester
Back to topic

Quiz

Web server

Check yourself

  1. 1.You set reuseExistingServer: !process.env.CI in your webServer config. A teammate runs the tests locally without starting the dev server first. What happens?
  2. 2.Your Next.js app takes 90 seconds to compile on the first start. Tests fail with a timeout error before the server is ready. What do you change?
  3. 3.Your server responds 200 to the health check URL immediately, but the database connection isn't ready for another 5 seconds — causing test failures. What webServer option handles this?
  4. 4.Your project has a React frontend on port 3000 and a Node API on port 4000. Both need to be running before tests start. How do you configure this?
  5. 5.After setting up webServer pointing to localhost:3000, your tests still use await page.goto('http://localhost:3000/orders') with the full URL. What simpler pattern does Playwright support?
  6. 6.On CI, what happens if the port that webServer is configured to use is already occupied by another process?
  7. 7.What does stdout: 'ignore', stderr: 'pipe' in the webServer config do?
  8. 8.Where is the recommended place to read environment variables set by the webServer's wait regex named capture groups?