Playwright

Write your first end-to-end test

Easy30 pts
  • End-to-End Flow
  • User Actions
  • Auto-waiting
Practice app · TargetQA Practice Store

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

Test URL
/lab/playwright-write-your-first-end-to-end-test

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

Objective

Execute a full user navigation journey: start at the store homepage, click 'Shop now', and verify the products catalog opens.

Your Task

  1. 1Open the practice store at TEST_URL.
  2. 2Click the 'Shop now' call-to-action button #cta-shop.
  3. 3Assert that the route indicator #current-route displays '/products'.
  4. 4Assert that the products catalog section #products-section is visible.

Validation Checks

  • The test clicks #cta-shop
  • Route indicator displays '/products'
  • #products-section is visible
  • At least 2 assertions pass

Playwright · Playwright Practice Track · Setup & first test