IntermediatePW-RT-00225 minutesPlaywright

Assert canonical event order after reversed receipt

A source can declare events in an arrival order that differs from the stable order used for assertions.

  • tables
  • assertions
  • state

Objective

What to automate

Select the ordering scenario, run two steps, and prove the table is sorted by sequence.

Preconditions and test data

Preconditions

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

Test data

  • scenario: ordering
  • received order: 2 then 1

Expected result

The table renders Sequence 1 before Sequence 2 while exposing their received order.

Progressive hints

Hint 1

Apply Canonical event ordering before running a step.

Hint 2

Run two explicit updates, not a timed loop.

Hint 3

Read the scoped table rows in their rendered order.

I’ve tried it — show solution
  1. Apply Canonical event ordering before running a step.
  2. Run two explicit updates, not a timed loop.
  3. Read the scoped table rows in their rendered order.

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