Skip to content

Commit

Permalink
docs: note about screenshot environment (#33501)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Nov 8, 2024
1 parent b021b58 commit 9c6c58f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/test-snapshots-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9c6c58f

Please sign in to comment.