BeginnerPW-EMP-00115 minutesPlaywright

Find an active engineering employee

A directory row must stay findable through its visible employee details.

  • locators
  • tables

Objective

What to automate

Open Employee Management, filter Engineering employees, and assert one active row by role and name.

Preconditions and test data

Preconditions

  • Use a fresh isolated Practice Lab browser context.
  • Open the fixture identified by FX-EMP-001.

Test data

  • department: Engineering
  • status: Active

Expected result

One visible employee row matches the selected department and exposes an Active status cell.

Progressive hints

Hint 1

Start from the Employee Management fixture.

Hint 2

Use the Department and Status labels before applying filters.

Hint 3

Scope the assertion to the employee directory table row.

I’ve tried it — show solution
  1. Start from the Employee Management fixture.
  2. Use the Department and Status labels before applying filters.
  3. Scope the assertion to the employee directory table row.

The deliberately failing starter is in tests/employee-management.spec.ts inside the TypeScript starter ZIP.