Add a setup project for auth
Hard120 pts
- Setup Project
- storageState
- Global Setup
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
Configure an authentication setup project that logs in once and saves storage state to disk.
Your Task
- 1Navigate to the sign-in page at TEST_URL.
- 2Enter 'qa@target.dev' into the email field (#username) and 'Test@123' into the password field (#password).
- 3Click the sign-in button (#login-button).
- 4Assert that the dashboard container (#dashboard) is visible.
- 5Save the authenticated browser session storage state to disk.
Validation Checks
- Sign-in page is loaded at TEST_URL
- Credentials 'qa@target.dev' and 'Test@123' are submitted
- Dashboard (#dashboard) is verified visible
- Browser session is saved via page.context().storageState
- At least 1 assertion passes
Fixtures
- username
- qa@target.dev
- password
- Test@123
Playwright · SDET Practice Track · Projects & configuration