docs: note about screenshot environment (#33501)

This commit is contained in:
Yury Semikhatsky 2024-11-08 08:33:04 -08:00 committed by GitHub
parent b021b58379
commit 9c6c58f8ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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