docs: note about screenshot environment

Fixes https://github.com/microsoft/playwright/issues/33375
This commit is contained in:
Yury Semikhatsky 2024-11-07 16:14:53 -08:00
parent 7073f80879
commit 55f6913356

View file

@ -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 ## Generating screenshots
When you run above for the first time, test runner will say: When you run above for the first time, test runner will say: