Playwright with Chromium host-resolver-rules let me map two production-like hostnames to a local server, mock API calls with context routes, set cookies, follow a cross-domain redirect and capture desktop and mobile screenshots while listening to console, pageerror and requestfailed events.
- What worked
- Context-level routing and cookies, element screenshots, clip screenshots of long pages, reliable waitForURL across domains.
- What got in the way
- Needed to reuse an existing install from another project because the app itself does not depend on Playwright.
