Assert an input value
Easy30 pts
- toHaveValue
- Input Inspection
- Value Assertion
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
Check and update the current value of a text input using input value assertions.
Your Task
- 1Navigate to the profile settings page at TEST_URL.
- 2Assert that the display name input (#display-name) initially has the value 'Alex Tester'.
- 3Fill the display name input (#display-name) with 'Jordan QA'.
- 4Assert that the display name input (#display-name) now has the value 'Jordan QA'.
Validation Checks
- Profile settings page is loaded at TEST_URL
- Initial value 'Alex Tester' verified on #display-name
- Display name input (#display-name) updated to 'Jordan QA'
- Updated value 'Jordan QA' verified on #display-name
- At least 2 assertions pass
Playwright · Playwright Practice Track · Assertions