docs: note about screenshot environment
Fixes https://github.com/microsoft/playwright/issues/33375
This commit is contained in:
parent
7073f80879
commit
55f6913356
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue