1
0
mirror of synced 2026-08-05 17:56:59 +00:00

feature: add readme for api mocking (#7)

This commit is contained in:
Debbie O'Brien
2023-10-30 12:19:32 +01:00
committed by GitHub
parent 1874c6047d
commit ccdf0867ba
2 changed files with 25 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
---
name: Playwright - API Mocking
description: "This sample demonstrates how to mock API calls in Playwright tests"
page_type: sample
languages:
- typescript
- javascript
products:
- playwright
urlFragment: api-mocking
---
# API Mocking
This sample demonstrates how to
- mock API calls in Playwright tests
- intercept the request and modifying it
- mock using HAR files
For more information about the sample see:
- [Playwright API Mocking demo](https://demo.playwright.dev/api-mocking)
- [Blog post on API Mocking](https://dev.to/playwright/api-mocking-for-your-playwright-tests-47ah)
- [Docs on API Mocking](https://playwright.dev/docs/mock)
- [Release video on our Network Annotations feature which gives you a clearer view of what your API call and fulfillments are doing](https://youtu.be/pJiirfyJwcA)