paint-brush
Understanding Visual Comparisons in Playwrightby@puppo
620 reads
620 reads

Understanding Visual Comparisons in Playwright

by Luca Del Puppo5mFebruary 9th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In some projects it is crucial to respect the same size for the component on the page, or to guarantee the exact visualization each time, or to ensure the same colour, etc. Playwright exposes this feature out of the box. To do that, Playwright uses snapshots and compares a specific snapshot with the test result to check that nothing has changed.
featured image - Understanding Visual Comparisons in Playwright
Luca Del Puppo HackerNoon profile picture
Luca Del Puppo

Luca Del Puppo

@puppo

Microsoft MVP, Full Stack developer and javascript enthusiastic.

0-item

STORY’S CREDIBILITY

Code License

Code License

The code in this story is for educational purposes. The readers are solely responsible for whatever they build with it.

L O A D I N G
. . . comments & more!

About Author

Luca Del Puppo HackerNoon profile picture
Luca Del Puppo@puppo
Microsoft MVP, Full Stack developer and javascript enthusiastic.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite