BeginnerPW-RT-00115 minutesPlaywright

Run one bounded refresh poll

A learner needs a visible update without relying on a timer, WebSocket, or third-party event source.

  • locators
  • waits
  • network

Objective

What to automate

Open the refresh scenario, run one explicit poll, and assert the first ordered event.

Preconditions and test data

Preconditions

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

Test data

  • scenario: refresh
  • poll endpoint: tickets?limit=1&sort=id

Expected result

Ticket snapshot refreshed appears, and the poll counter is exactly 1.

Progressive hints

Hint 1

Open the route with ?scenario=refresh.

Hint 2

Use the Run next poll button by accessible name.

Hint 3

Assert both the event-log row and the visible poll count.

I’ve tried it — show solution
  1. Open the route with ?scenario=refresh.
  2. Use the Run next poll button by accessible name.
  3. Assert both the event-log row and the visible poll count.

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