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

Quiz

Authentication

Check yourself

  1. 1.What does Playwright's storageState save?
  2. 2.You have 60 tests. Most just read data, but 5 create new records. What's the best auth strategy?
  3. 3.Where should the playwright/.auth directory be added to avoid committing session tokens to the repository?
  4. 4.How do you tell a test project in playwright.config.ts to start every browser context already authenticated?
  5. 5.In playwright.config.ts, which property on a test project ensures the setup project runs before it?
  6. 6.Why is authenticating via an API endpoint faster than driving the login form through the browser UI?
  7. 7.Your app has admin and regular user roles. How do you handle multiple auth files in playwright.config.ts?
  8. 8.What testMatch pattern is typically used on the setup project to match only auth setup files?