Pw Network Mocker

Designs Playwright route interception and mocking — JavaScript or TypeScript — to make UI tests deterministic without diverging from the real API contract. Use when an SDET says "mock this API", "stub the /orders response", "force a 500 error state", "make this test deterministic without the backend", or "intercept network calls". Produces `page.route`/`fulfill` handlers to stub responses, simulate errors/slow/aborted states, and remove backend flakiness — a draft the engineer wires in and verifies against the real contract.

Shivani26Singh Updated

File contents

Shivani26Singh/skill-library/tree/main/Automation_Playwright/pw-network-mocker commit aa7cab2cf4

Frequently asked questions

npx skillmds@latest add shivani26singh/pw-network-mocker