playwright/packages/web/src/shared
Yury Semikhatsky b9cce598dd
fix(screenshot): show image diff inline in errors list (#32997)
The diff is now shown inline in the errors list.

There are 2 possible failures of toHaveScreenshot
* Previous and actual snapshot mismatch. In this case html report will
show diff between Actual/Previous and have Expected as a separate
screenshot.
* Actual/Previous are equal but they differ from the expected. In this
case html report only contains Actual/Expected images and the diff.

Reference: https://github.com/microsoft/playwright/issues/32341

<img width="1039" alt="image"
src="https://github.com/user-attachments/assets/b458f986-cc25-4721-862c-0cc2c1b01a42">
2024-10-10 16:49:17 -07:00
..
DEPS.list chore: reuse image diff component in trace/html (#28727) 2023-12-22 10:17:35 -08:00
glassPane.tsx chore: network panel polish (#28924) 2024-01-10 15:28:33 -08:00
imageDiffView.spec.tsx refactor(ui): some react refactorings (#31900) 2024-07-31 12:12:06 +02:00
imageDiffView.tsx fix(screenshot): show image diff inline in errors list (#32997) 2024-10-10 16:49:17 -07:00
resizeView.tsx chore(ui): enable react/recommended lint rules (#32214) 2024-08-20 14:16:28 +02:00