Objective
What to automate
Create a synthetic employee with the Practice API, then search for its deterministic ID in the directory.
Preconditions and test data
Preconditions
- Use a fresh isolated Practice Lab browser context.
- Open the fixture identified by FX-EMP-001.
Test data
name: Mira Employeedepartment: Quality Assurancetitle: QA Engineerlocation: Pune
Expected result
The API returns a session-scoped emp ID and the matching row appears in the directory.
Progressive hints
Hint 1
Create a Lab session and retain its CSRF token.
Hint 2
POST the full employee record to the employees endpoint.
Hint 3
Search the UI for the returned name and assert the role cell.
I’ve tried it — show solution
- Create a Lab session and retain its CSRF token.
- POST the full employee record to the employees endpoint.
- Search the UI for the returned name and assert the role cell.
The deliberately failing starter is in tests/employee-management.spec.ts inside the TypeScript starter ZIP.