Skip to content

Recipes

Task-oriented snippets — pick the goal, read the snippet. For background on the surfaces these snippets configure, see Surfaces overview.

Recipe index

Goal Recipe
Stand up the "signed in, paid up" baseline before driving anything else Signed-in with subscription
Trigger a subscription error from playback or license acquisition Subscription expired mid-playback
Force a DRM (FairPlay / Widevine / PlayReady) failure DRM license failure
Serve different storefronts across tests reusing one mock Multiple storefronts
Generate catalog resources on the fly instead of enumerating ids Callable resolvers
Cover popups and pages opened later in one binding Bind to a browser context
Vary the authorize result between tests without re-creating the page Swap authorize between tests

Note

Got a scenario that's not covered? Open an issue with the snippet that worked — recipes here track real usage rather than speculative coverage.