Playwright Visual Comparisons | Playwright part - 28

Опубликовано: 16 Октябрь 2024
на канале: LetCode with Koushik
12,495
131

The visual comparison is really a great feature.
Playwright Test includes the ability to produce and visually compare screenshots using expect(value).toMatchSnapshot(snapshotName). On first execution, Playwright test will generate reference screenshots. Subsequent runs will compare against the reference.

References:
https://github.com/mapbox/pixelmatch
https://playwright.dev/docs/test-snap...

Code:
https://github.com/ortoniKC/Playwrigh...

Chapters:
00:00 Playwright Visual Comparisons
0:40 How it works?
3:00 toMatchSnapshot
8:00 update-snapshots
12:50 pixelmatch

---------------------------Thank you----------------------------

Thanks for watching, if you like the video, give it a thumbs up 👆.
Sharing is caring, kindly share the video with your friends and colleagues.
Don't forget to subscribe and hit the bell 🔔 notification.
-------------------------------SOCIAL-------------------------------

📝Test Practice Site: https://letcode.in/
👥Facebook Group:   / letcode  
🐦Gitter: https://gitter.im/letcode-selenium/co...
📸Instagram:   / letcode.in  
🎓 LinkedIn:   / ortoni  
⛳️ XPath Extension: https://bit.ly/2T5EUCu

Join our WhatsApp group.
http://bit.ly/3cSPCpm

#letcode #playwright