IntermediatePW-TKT-00225 minutesPlaywright

Search and paginate tickets

A realistic support queue has more records than one rendered page.

  • tables
  • search
  • pagination

Objective

What to automate

Search for a synthetic ticket, clear the query, then verify the next page changes predictably.

Preconditions and test data

Preconditions

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

Test data

  • search: Synthetic support ticket
  • page size: 10

Expected result

The queue reports a stable total and a changed page label.

Progressive hints

Hint 1

Use Search tickets and apply the filters.

Hint 2

Clear the query before checking pagination.

Hint 3

Assert the accessible page label after Next page.

I’ve tried it — show solution
  1. Use Search tickets and apply the filters.
  2. Clear the query before checking pagination.
  3. Assert the accessible page label after Next page.

The deliberately failing starter is in tests/ticketing.spec.ts inside the TypeScript starter ZIP.