Assert an element is visible
Easy30 pts
- toBeVisible
- Visibility Check
- Web-first Assertions
Practice app · Profile Settings
A settings page for clicking, typing, reading text/attributes/CSS and element state.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Assert that the user avatar and active status badge are visible on the profile settings page.
Your Task
- 1Navigate to the profile settings page at TEST_URL.
- 2Assert that the user avatar image (#avatar) is visible on the page.
- 3Assert that the active status badge (#status-badge) is visible on the page.
Validation Checks
- Profile settings page is loaded at TEST_URL
- Avatar image (#avatar) is verified visible
- Status badge (#status-badge) is verified visible
- At least 2 assertions pass
Playwright · Playwright Practice Track · Assertions