Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(test-snapshots-js.md): Add link to snapshotPathTemplate (#29727)
Jan Sepkee83b4c25beb3
diff --git a/docs/src/test-snapshots-js.md b/docs/src/test-snapshots-js.mdindex a6e5b98636..d2c7606adf 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`](./api/class-testproject#test-project-snapshot-path-template) in the playwright config.+## Updating screenshotsSometimes you need to update the reference screenshot, for example when the page has changed. Do this with the `--update-snapshots` flag.