Fresher~5 mingetByLabelgetByRole headingSmoke test
Admin login and dashboard check
App: PeopleDesk HR, a practice HR management portal (OrangeHRM-style). Login: Admin / admin123.
Interview scenario
"This is our HR portal. Log in as the admin and verify the dashboard loaded properly."
Acceptance criteria
- Log in with Admin / admin123.
- Assert the URL contains /dashboard.
- Assert the Dashboard heading is visible and the sidebar shows PIM and Leave.
tests/example.spec.tsPlaywright · TypeScript
Runs in your browser with a Playwright-compatible API: locators, auto-waiting actions, expect, imports between files and test.extend fixtures. Saved in this browser. Ctrl/⌘ + Enter runs.
Save your lab code to a GitHub repo in your name, automatically after every run.Sign in with GitHub
/sandbox/peopledeskOpen ↗
Test output
Press Run tests to watch your code drive the practice app in the preview.
Reference solution
Try it yourself first. Then compare with the Playwright solution and the same test in Selenium Java with TestNG.