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

Quiz

Isolation

Check yourself

  1. 1.Test A logs in as admin, sets a session cookie, and passes. Test B (which tests the login page) starts immediately after. Does test B see the admin session cookie?
  2. 2.What is a browser context in Playwright most analogous to?
  3. 3.What is the correct hierarchy from largest to smallest in Playwright's browser model?
  4. 4.How do you create a second browser context manually within a single test?
  5. 5.You want to run a test already logged in as a specific user without repeating the login flow every time. Which approach uses browser context storageState correctly?
  6. 6.What is a persistent context in Playwright and when would you use it?
  7. 7.Why is 'cleaning up state between tests' considered worse than Playwright's context isolation approach?
  8. 8.In a test that uses browser.newContext() to create two contexts, what must you do before the test ends?