AdvancedPW-RT-00540 minutesPlaywright

Select a realtime scenario by query parameter

Repeatable diagnostics need a documented URL-level scenario selection that starts no work by itself.

  • api
  • locators
  • state

Objective

What to automate

Open ?scenario=fault and verify the selected control, empty event log, and zero poll count.

Preconditions and test data

Preconditions

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

Test data

  • query parameter: scenario=fault

Expected result

The controlled-fault scenario is selected without an event or request until the button is clicked.

Progressive hints

Hint 1

Navigate directly to the documented scenario URL.

Hint 2

Read the labelled Update scenario control.

Hint 3

Assert the empty log and zero count before any action.

I’ve tried it — show solution
  1. Navigate directly to the documented scenario URL.
  2. Read the labelled Update scenario control.
  3. Assert the empty log and zero count before any action.

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