From b7b0f9571ded164ccc37fd55a4536c671dd3c814 Mon Sep 17 00:00:00 2001 From: Adam Gastineau Date: Fri, 24 Jan 2025 12:16:58 -0800 Subject: [PATCH] cherry-pick(#34471): docs: remove toMatchAriaSnapshot path feature --- docs/src/api/class-locatorassertions.md | 1 - packages/playwright/types/test.d.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/docs/src/api/class-locatorassertions.md b/docs/src/api/class-locatorassertions.md index 35f64ea711..8f8233fae4 100644 --- a/docs/src/api/class-locatorassertions.md +++ b/docs/src/api/class-locatorassertions.md @@ -2250,7 +2250,6 @@ Asserts that the target element matches the given [accessibility snapshot](../ar ```js await expect(page.locator('body')).toMatchAriaSnapshot(); await expect(page.locator('body')).toMatchAriaSnapshot({ name: 'snapshot' }); -await expect(page.locator('body')).toMatchAriaSnapshot({ path: '/path/to/snapshot.yml' }); ``` ```python async diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 26c713949a..09e9617534 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -8690,7 +8690,6 @@ interface LocatorAssertions { * ```js * await expect(page.locator('body')).toMatchAriaSnapshot(); * await expect(page.locator('body')).toMatchAriaSnapshot({ name: 'snapshot' }); - * await expect(page.locator('body')).toMatchAriaSnapshot({ path: '/path/to/snapshot.yml' }); * ``` * * @param options