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

Quiz

Fixtures

Check yourself

  1. 1.In a fixture, what happens AFTER await use(value)?
  2. 2.You want to create a database connection that's shared across all tests in a worker (not recreated per test). What scope do you use?
  3. 3.How do you create a custom fixture and make it available to test files?
  4. 4.A fixture is defined but a test does not list it in its argument list. When does Playwright run that fixture?
  5. 5.Which of the following are built-in Playwright fixtures available in every test without any custom setup?
  6. 6.You want to override the built-in page fixture to automatically navigate to the base URL before every test. What is the correct approach?
  7. 7.Why are fixtures considered better than beforeEach/afterEach for sharing setup and teardown?
  8. 8.A fixture function receives ({ page, browser }, use) as arguments. What does this mean?