Test multiple roles in one run
Hard120 pts
- Role-based Access
- RBAC
- Multiple Roles
Practice app · Acme Ops
A sign-in page with field validation and an authenticated dashboard.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Switch between different user roles (e.g. Administrator vs Standard user) and verify role permissions.
Your Task
- 1Navigate to the sign-in page at TEST_URL.
- 2Sign in with 'qa@target.dev' and 'Test@123'.
- 3Assert that the dashboard container (#dashboard) is visible.
- 4Assert that the user role element (#user-role) displays 'Administrator'.
Validation Checks
- Authenticates as Administrator
- #user-role displays 'Administrator'
- At least 2 assertions pass
Fixtures
- username
- qa@target.dev
- password
- Test@123
Playwright · QA Automation Practice Track · Authentication & storage state