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 ticketlabels: 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
- Create a Lab session and retain its CSRF token.
- POST the full ticket payload to tickets.
- Search the queue for the subject and assert labels.
The deliberately failing starter is in tests/ticketing.spec.ts inside the TypeScript starter ZIP.