Playwright

Run one spec across three browsers

Medium70 pts
  • Projects
  • Cross-browser
  • Chromium/Firefox/WebKit
Practice app · TargetQA Practice Store

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

Test URL
/lab/playwright-run-one-spec-across-three-browsers

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

Objective

Structure tests to execute identically across Chromium, Firefox, and WebKit.

Your Task

  1. 1Navigate to the store home page at TEST_URL.
  2. 2Assert that the hero heading (#page-title) is visible and contains 'Welcome to the practice store'.
  3. 3Assert that the navigation link for products (#nav-products) is enabled.
  4. 4Click the products navigation link (#nav-products) to navigate to the catalog.
  5. 5Assert that the browser URL contains '#/products'.

Validation Checks

  • Store home page is loaded at TEST_URL
  • Hero heading (#page-title) is verified visible and contains 'Welcome to the practice store'
  • Navigation link (#nav-products) is verified enabled and clicked
  • Browser URL contains '#/products'
  • At least 1 assertion passes

Playwright · Playwright Practice Track · Projects & configuration