Objective
What to automate
Create a booking with the Practice API and verify its guest name and rate in the booking directory.
Preconditions and test data
Preconditions
- Use a fresh isolated Practice Lab browser context.
- Open the fixture identified by FX-BKG-001.
Test data
city: PuneroomType: Park Queenstatus: confirmed
Expected result
The returned bkg identifier and typed room fields appear only in the active session.
Progressive hints
Hint 1
Create a Lab session and retain its CSRF token.
Hint 2
POST all required booking fields plus room and rate metadata.
Hint 3
Open the app and locate the generated bkg row by guest name.
I’ve tried it — show solution
- Create a Lab session and retain its CSRF token.
- POST all required booking fields plus room and rate metadata.
- Open the app and locate the generated bkg row by guest name.
The deliberately failing starter is in tests/travel-booking.spec.ts inside the TypeScript starter ZIP.