playwright/packages/playwright-test/src/matchers
Andrey Lushnikov a98babec69
feat(test-runner): introduce pixelCount and pixelRatio options (#12169)
This patch adds additional options to `toMatchSnapshot` method:
- `pixelCount` - acceptable number of pixels that differ to still
  consider images equal. Unset by default.
- `pixelRatio` - acceptable ratio of all image pixels (from 0 to 1) that differ to still
  consider images equal. Unset by default.

Fixes #12167, #10219
2022-02-17 15:44:03 -08:00
..
golden.ts feat(test-runner): introduce pixelCount and pixelRatio options (#12169) 2022-02-17 15:44:03 -08:00
matchers.ts feat(toBeChecked): allow passing checked: false (#10665) 2021-12-02 10:31:26 -08:00
toBeTruthy.ts fix(test runner): disable expect, action and navigation timeouts on debug (#10958) 2021-12-16 18:32:46 -08:00
toEqual.ts fix(test runner): disable expect, action and navigation timeouts on debug (#10958) 2021-12-16 18:32:46 -08:00
toMatchSnapshot.ts feat(test-runner): introduce pixelCount and pixelRatio options (#12169) 2022-02-17 15:44:03 -08:00
toMatchText.ts chore: allow pre-processing scripts (#11702) 2022-01-27 14:32:23 -08:00