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

Quiz

Best Practices

Check yourself

  1. 1.Which locator is most resilient to UI refactoring?
  2. 2.What's wrong with page.waitForTimeout(3000) before an assertion?
  3. 3.Test B fails only when test A doesn't run first. What is this problem called, and how do you fix it?
  4. 4.When should you use getByTestId() over getByRole() or getByText()?
  5. 5.You need to click a 'Details' button inside a specific order card (by order ID). Which approach is correct?
  6. 6.Where do assertions belong in a Page Object Model?
  7. 7.You're testing a payment flow that calls a real Stripe API. What should you do instead?
  8. 8.Which playwright.config.ts setting saves traces for debugging failures without slowing down passing tests?