From d8e1f54cbddcb585b2a0d686a6b7e1ffa5214e02 Mon Sep 17 00:00:00 2001 From: Debbie O'Brien Date: Wed, 29 Jan 2025 22:10:34 +0100 Subject: [PATCH] Update docs/src/aria-snapshots.md Co-authored-by: Dmitry Gozman Signed-off-by: Debbie O'Brien --- 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 51e683daf1..8756bb24f6 100644 --- a/docs/src/aria-snapshots.md +++ b/docs/src/aria-snapshots.md @@ -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 are saved with the following pattern `{snapshotDir}/{testFileDir}/{testFileName}-snapshots/{arg}{ext}`. 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 using the following configuration: ```js export default {