AdvancedPW-TKT-00340 minutesPlaywright

Create a ticket by API and verify the queue

A tester sets up synthetic ticket data through the API before checking the queue UI.

  • api
  • api-ui
  • tables

Objective

What to automate

Create a ticket with a Lab session and CSRF token, then search for its subject in the Ticketing app.

Preconditions and test data

Preconditions

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

Test data

  • subject: API-created ticket
  • labels: Bug, Access

Expected result

The created session-only ticket appears with its labels.

Progressive hints

Hint 1

Create a Lab session and retain its CSRF token.

Hint 2

POST the full ticket payload to tickets.

Hint 3

Search the queue for the subject and assert labels.

I’ve tried it — show solution
  1. Create a Lab session and retain its CSRF token.
  2. POST the full ticket payload to tickets.
  3. Search the queue for the subject and assert labels.

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