evergreen

Testing Apps with Cypress

Illustrated notes on how to test web apps with Cypress

Illustrated notes on Brett Cassette ’s egghead course all about testing apps with Cypress.io .

Cypress.io is a handy tool for end to end testing
It includes all levels of the stack - from the UI to front-end data stores, to XHR, to APIs, to your database. It's able to test all of these at the same time. It runs a virtual browser that clicks through all the things on all the pages
It lets us write custom tests that assert true or false statements on specific parts of our app. It also alerts us if any of those tests fail. The tool uses the chai assertion library which makes it easy to write chains of selectors.

Want more illustrated notes on web development?

Take a look at The JAMStack, Gatsby & Contentful , A Fresh Serving of JavaScript ES2019 or [[A Fruitful Guide to JavaScript’s Comparison Operators]]