Playwright

Add annotations and steps

Medium70 pts
  • test.step
  • Annotations
  • HTML Reports
Practice app · TargetQA Practice Store

A small storefront landing page for browser setup, navigation, titles, URLs and screenshots.

Test URL
/lab/playwright-add-annotations-and-steps

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Group related test operations into readable, structured steps within test reports.

Your Task

  1. 1Group the navigation action into a step titled 'Navigate to store'.
  2. 2Group the heading assertion for #page-title into a step titled 'Verify heading'.

Validation Checks

  • Uses structured test steps to organize execution reporting
  • #page-title is verified
  • At least 1 assertion passes

Playwright · Playwright Practice Track · Debugging & traces