Objective
What to automate
Select an available room and rate, confirm a fake guest reservation, and verify its generated reference.
Preconditions and test data
Preconditions
- Use a fresh isolated Practice Lab browser context.
- Open the fixture identified by FX-BKG-001.
Test data
guest: Asha Demopayment: none
Expected result
The confirmation reports a bkg reference, room, total, and confirmed status in the current session.
Progressive hints
Hint 1
Select an enabled room card before attempting confirmation.
Hint 2
Use the labelled Guest name field and the confirmation button.
Hint 3
Assert the confirmation facts and the matching row in the booking directory.
I’ve tried it — show solution
- Select an enabled room card before attempting confirmation.
- Use the labelled Guest name field and the confirmation button.
- Assert the confirmation facts and the matching row in the booking directory.
The deliberately failing starter is in tests/travel-booking.spec.ts inside the TypeScript starter ZIP.