AdvancedPW-RT-00440 minutesPlaywright

Recover from a controlled polling fault

A deterministic 503 exercise must identify its local scope and recover only after an explicit action.

  • network-mocking
  • error-recovery
  • assertions

Objective

What to automate

Run the controlled fault, mock the next ticket request, and assert the recovery message.

Preconditions and test data

Preconditions

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

Test data

  • scenario: fault
  • fault: labelled local 503

Expected result

Controlled 503 response is followed by Controlled fault recovered after one explicit poll.

Progressive hints

Hint 1

Choose Recover from a controlled 503.

Hint 2

Assert the fault event before invoking the recovery step.

Hint 3

Route the existing tickets GET call and verify no automatic retry occurs.

I’ve tried it — show solution
  1. Choose Recover from a controlled 503.
  2. Assert the fault event before invoking the recovery step.
  3. Route the existing tickets GET call and verify no automatic retry occurs.

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