Playwright

Run a single test and a single file

Easy30 pts
  • test.only
  • Test filtering
  • Assertions
Practice app · TargetQA Practice Store

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

Test URL
/lab/playwright-run-a-single-test-and-a-single-file

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

Objective

Isolate a specific test case validating that the hero banner renders expected promotional content.

Your Task

  1. 1Open the practice store at TEST_URL.
  2. 2Locate the promotional hero banner #hero-banner.
  3. 3Assert that #hero-banner is visible.
  4. 4Assert that #hero-banner contains the promotional headline 'Welcome to the practice store'.

Validation Checks

  • #hero-banner is visible
  • #hero-banner contains 'Welcome to the practice store'
  • At least 2 assertions pass

Playwright · Playwright Practice Track · Setup & first test