Playwright

Add a mobile device project

Medium70 pts
  • Mobile Emulation
  • Responsive Layout
  • Projects
Practice app · TargetQA Practice Store

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

Test URL
/lab/sdet-add-a-mobile-device-project

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

Objective

Emulate a mobile device (such as Pixel 5) and verify responsive mobile navigation.

Your Task

  1. 1Configure the test to emulate a mobile device (such as Pixel 5).
  2. 2Navigate to the store home page at TEST_URL.
  3. 3Assert that the hero heading (#page-title) is visible and contains 'Welcome to the practice store'.
  4. 4Assert that the browser document title matches 'TargetQA Practice Store'.
  5. 5Verify that the mobile viewport width is under 600 pixels.

Validation Checks

  • Mobile device emulation is configured
  • Store home page is loaded at TEST_URL
  • Hero heading (#page-title) is verified visible and contains 'Welcome to the practice store'
  • Browser document title matches 'TargetQA Practice Store'
  • At least 1 assertion passes

Playwright · SDET Practice Track · Projects & configuration