AdvancedPW-BKG-00340 minutesPlaywright

Select a rate and confirm a synthetic booking

A realistic booking flow must confirm an observable reservation without collecting payment data.

  • forms
  • api-ui
  • assertions

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 Demo
  • payment: 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
  1. Select an enabled room card before attempting confirmation.
  2. Use the labelled Guest name field and the confirmation button.
  3. 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.