API Testing

API testing patterns for Playwright + TypeScript — resource class pattern (HTTP wrappers extending BasePage, domain folders mirroring REST namespaces, typed payload builders), the ApiListener pattern for capturing real responses by stateKey without mocking, optional SQL/stored-procedure bridge for test-data setup, and TOTP-based MFA enrollment. Use when seeding test data via API, asserting on API responses without mocking, building HTTP wrapper classes, capturing network responses during UI tests, or setting up test users with MFA.

antongulin ca820f0 11.5 KB Updated

File contents

antongulin/pw-kit/tree/main/skills/api-testing commit ca820f051f

Frequently asked questions

npx skillmds@latest add antongulin/api-testing