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

Quiz

Writing your first tests

Check yourself

  1. 1.Which locator should you reach for FIRST when targeting a button labelled “Sign in”?
  2. 2.What does await expect(locator).toBeVisible() do?
  3. 3.Why does each test get its own browser context by default?
  4. 4.What is test.describe used for?
  5. 5.Where should you put repeated setup steps (like navigating to a page) that every test in a file needs?
  6. 6.What does the context fixture give you, compared to the page fixture?
  7. 7.How do you scope a locator search to only look inside a specific element, such as a dialog?
  8. 8.Why does almost every Playwright action and assertion need await?