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

Quiz

Timeouts

Check yourself

  1. 1.A test fails with: 'Error: expect(received).toHaveText(expected) with timeout 5000ms'. The API response takes 8 seconds. What's the right fix?
  2. 2.You have a worker-scoped fixture that seeds a test database — it takes up to 45 seconds. Tests themselves take 5-10 seconds. How do you prevent the seed from eating the test timeout?
  3. 3.What is the default test timeout in Playwright?
  4. 4.How does test.slow() work and when should you use it?
  5. 5.What is the default expect timeout and what does it control?
  6. 6.How do you set a global action timeout so every click(), fill(), and goto() fails after 10 seconds if not complete?
  7. 7.What happens when the test timeout fires during a page.goto() call?
  8. 8.Which config option sets a safety-net timeout for the entire test suite run — not for individual tests?