anti-aliasing
Softening the jagged edges of text and shapes by drawing edge pixels in in-between shades.
In more detail
Operating systems and graphics chips anti-alias slightly differently, so the same page can differ by a few edge pixels between machines. Visual tests run in one container image and allow a small pixel tolerance to cope.
Related terms
- maxDiffPixelRatio — A Playwright screenshot option giving the fraction of pixels, from 0 to 1, that may differ before the comparison fails.
- flaky test — A test that sometimes passes and sometimes fails on the same code, because it depends on something it does not control.
- Docker — A platform for building, shipping and running software in containers.
Taught in
- Visual Regression Testing: Playwright & Snapshot Differencing — Design Systems & Component Engineering