From 9f80c3c3e94292d4f8f33957c1080c524b48618a Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Wed, 26 Feb 2025 14:30:34 +0100 Subject: [PATCH] Update docs/src/aria-snapshots.md Co-authored-by: Dmitry Gozman Signed-off-by: Simon Knott --- docs/src/aria-snapshots.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/aria-snapshots.md b/docs/src/aria-snapshots.md index 19717a66d2..0467cf3878 100644 --- a/docs/src/aria-snapshots.md +++ b/docs/src/aria-snapshots.md @@ -342,7 +342,7 @@ npx playwright test --update-snapshots --update-source-mode=3way To store your snapshots in a separate file, use the `toMatchAriaSnapshot` method with the `name` option, specifying a `.snapshot.yml` file extension. ```js -await expect(page.getByRole('main')).toMatchAriaSnapshot({ name: 'main-snapshot.snapshot.yml' }); +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](./api/class-testconfig#test-config-snapshot-path-template) using the following configuration: