STARWEST 2022 Tutorial: Automating Visual Tests with Cypress

Conference archive

SEE PRICING & PACKAGES

Tuesday, October 4, 2022 - 1:00pm to 4:30pm

Automating Visual Tests with Cypress

New

In this workshop, we learn what "visual testing" is and how it's different from traditional functional testing. Essentially, a picture is worth a thousand assertions. We can take visual snapshots of our apps during automated tests and compare them over time. Any changes detected are flagged for testers to inspect. Good visual testing uses AI to flag significant things like missing elements instead of insignificant things like a 1-pixel shift. To demonstrate this, we will automate a test for an example web app using Cypress and JavaScript without and then with visual snapshots. For visual testing, we will use Applitools Eyes (free accounts). We will also run visual tests across multiple browser configurations using the Applitools Ultrafast Test Cloud.

Andrew Knight
Applitools

Andrew Knight is the Automation Panda and a Developer Advocate at Applitools. He strives to help others in solving problems in software development, testing, and quality. Over the past decade, he has designed and built robust test automation projects from the ground up that can run thousands of tests continuously. He is the author of the upcoming book The Way To Test Software from Manning Publications, and he is also the lead developer for Boa Constrictor, the .NET Screenplay Pattern. Read his tech blog at AutomationPanda.com and follow him on Twitter.