From 9c6c58f8ce9a502347ba096e4966a90f3f2b8f83 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 8 Nov 2024 08:33:04 -0800 Subject: [PATCH] docs: note about screenshot environment (#33501) --- docs/src/test-snapshots-js.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/test-snapshots-js.md b/docs/src/test-snapshots-js.md index d2c7606adf..a1ece1a6e5 100644 --- a/docs/src/test-snapshots-js.md +++ b/docs/src/test-snapshots-js.md @@ -16,6 +16,10 @@ test('example test', async ({ page }) => { }); ``` +:::warning +Browser rendering can vary based on the host OS, version, settings, hardware, power source (battery vs. power adapter), headless mode, and other factors. For consistent screenshots, run tests in the same environment where the baseline screenshots were generated. +::: + ## Generating screenshots When you run above for the first time, test runner will say: