Assert the URL and title
Easy30 pts
- toHaveURL
- toHaveTitle
- Page Assertions
Practice app · TargetQA Practice Store
A small storefront landing page for browser setup, navigation, titles, URLs and screenshots.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Verify the current browser URL and window title using page-level web-first assertions.
Your Task
- 1Navigate to the practice store page at TEST_URL.
- 2Assert that the browser document title matches 'TargetQA Practice Store'.
- 3Assert that the browser URL contains the expected test path ('/lab/').
Validation Checks
- Practice store page is loaded at TEST_URL
- Document title matches 'TargetQA Practice Store'
- Browser URL contains '/lab/'
- At least 2 assertions pass
Playwright · Playwright Practice Track · Assertions