From 4a04ce48b52effbfcbd650754e867c148b15bcab Mon Sep 17 00:00:00 2001 From: Jan Sepke <625043+jansepke@users.noreply.github.com> Date: Thu, 29 Feb 2024 06:48:44 +0100 Subject: [PATCH] docs(test-snapshots-js.md): Add link to snapshotPathTemplate so one can find how to configure the snapshot path references #29713 Signed-off-by: Jan Sepke <625043+jansepke@users.noreply.github.com> --- docs/src/test-snapshots-js.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/test-snapshots-js.md b/docs/src/test-snapshots-js.md index a6e5b98636..ba3651d97f 100644 --- a/docs/src/test-snapshots-js.md +++ b/docs/src/test-snapshots-js.md @@ -44,6 +44,8 @@ The snapshot name `example-test-1-chromium-darwin.png` consists of a few parts: - `chromium-darwin` - the browser name and the platform. Screenshots differ between browsers and platforms due to different rendering, fonts and more, so you will need different snapshots for them. If you use multiple projects in your [configuration file](./test-configuration.md), project name will be used instead of `chromium`. +The snapshot name and path can be configured with [`snapshotPathTemplate`](https://playwright.dev/docs/api/class-testproject#test-project-snapshot-path-template) in the playwright config. + ## Updating screenshots Sometimes you need to update the reference screenshot, for example when the page has changed. Do this with the `--update-snapshots` flag.