From e4454e801af52970e85c0cb8bd54ecaa410157da Mon Sep 17 00:00:00 2001 From: Debbie O'Brien Date: Wed, 29 Jan 2025 22:30:56 +0100 Subject: [PATCH] docs: fix from review --- docs/src/aria-snapshots.md | 4 ++-- packages/playwright/types/test.d.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/src/aria-snapshots.md b/docs/src/aria-snapshots.md index acfdc526e4..c4fe991e78 100644 --- a/docs/src/aria-snapshots.md +++ b/docs/src/aria-snapshots.md @@ -300,7 +300,7 @@ accessible names to aid snapshot creation and review. When using the Playwright test runner (`@playwright/test`), you can automatically update snapshots with the `--update-snapshots` flag, `-u` for short. -Running tests with the `--update-snapshots` flag will update snapshots that did not match. Matching snapshots will not be updated. Possible values are "all", "changed", "missing" and "none". +Running tests with the `--update-snapshots` flag will update snapshots that did not match. Matching snapshots will not be updated. ```bash npx playwright test --update-snapshots @@ -344,7 +344,7 @@ To store your snapshots in a separate file, use the `toMatchAriaSnapshot` method await expect(page.getByRole('main')).toMatchAriaSnapshot({ name: 'main-snapshot.yml' }); ``` -By default, snapshots from a test file `example.spec.ts` are placed in the `example.spec.ts-snapshots` directory. As snapshots should be the same across browsers, only one snapshot is saved even if testing with multiple browsers. Should you wish, you can customize the snapshot path template using the following configuration: +By default, snapshots from a test file `example.spec.ts` are placed in the `example.spec.ts-snapshots` directory. As snapshots should be the same across browsers, only one snapshot is saved even if testing with multiple browsers. Should you wish, you can customize the [snapshot path template](./api/class-testconfig#test-config-snapshot-path-template) using the following configuration: ```js export default { diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 5516c15839..b1d38068e8 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -8792,7 +8792,6 @@ interface LocatorAssertions { * * ```js * await expect(page.locator('body')).toMatchAriaSnapshot(); - * * await expect(page.locator('body')).toMatchAriaSnapshot({ name: 'body.yml' }); * ``` *