From b77f17ceaf0e460b8f312ccc46dc0c25b3788d82 Mon Sep 17 00:00:00 2001 From: Sebastian Fuchs Date: Wed, 2 Sep 2026 16:09:32 +0200 Subject: [PATCH] docs: Add route interceptor page to sidebar --- docs/.vitepress/config.ts | 5 ++++- docs/src/index.md | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 3f0d879..ba4bb57 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -41,7 +41,10 @@ export default defineConfig({ { text: "Utility Types", link: "/utility-types" }, { text: "API Testing", - items: [{ text: "Fetch Adapter", link: "/api/fetch-adapter" }], + items: [ + { text: "Route Interceptor", link: "/api/route-interceptor" }, + { text: "Fetch Adapter", link: "/api/fetch-adapter" }, + ], }, { text: "Snapshot Testing", diff --git a/docs/src/index.md b/docs/src/index.md index b317c50..9582767 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -13,12 +13,12 @@ hero: link: https://github.com/cronn/playwright-utils features: - - title: API Testing - details: Use Playwright's request context as a fetch implementation to send requests of an API client through Playwright. - link: /api/fetch-adapter - - title: Network Interceptors + - title: Route Interceptor details: Abort, mock, modify or delay the requests of a page for the duration of a single action instead of the whole test. link: /api/route-interceptor + - title: Fetch Adapter + details: Use Playwright's request context as a fetch implementation to send requests of an API client through Playwright. + link: /api/fetch-adapter - title: Snapshot Testing details: Mask non-deterministic values like IDs, timestamps or base URLs in a consistent format to keep file snapshots stable. link: /snapshots/normalizers