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