Question 1 of 6
In Playwright, how do you assert a beacon was sent?
Same truth as the Service Worker lesson: beacons ride the fetch pipeline.
page.route() (or page.waitForRequest) intercepts beacon requests like any fetch — match the collector glob, assert method POST and the body, optionally fulfill with 204. The route pattern '**/collect' is the recipe's canonical form.
Review this lesson