ExpertPW-BKG-00660 minutesPlaywright

Prove booking session isolation and reset

Two learners must never observe each other’s synthetic travel records.

  • api
  • isolation
  • reset

Objective

What to automate

Create a booking in one explicit Lab session, prove another cannot observe it, then reset the first session.

Preconditions and test data

Preconditions

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

Test data

  • session A: booking-a
  • session B: booking-b

Expected result

Session B never sees Session A data and reset restores the deterministic booking seed in Session A only.

Progressive hints

Hint 1

Create two explicit Lab sessions with separate headers.

Hint 2

Use each CSRF token only for its own mutation.

Hint 3

Compare booking collections before and after resetting session A.

I’ve tried it — show solution
  1. Create two explicit Lab sessions with separate headers.
  2. Use each CSRF token only for its own mutation.
  3. Compare booking collections before and after resetting session A.

The deliberately failing starter is in tests/travel-booking.spec.ts inside the TypeScript starter ZIP.