Write a basic cypress test to ensure that the app is not entirely broken

Share this video with your friends

Send Tweet

When writing e2e tests with cypress, even simplest tests can make a great impact.

A quick test that's going to visit our page and let us know whether it managed to successfully load (checks whether the server is not down) and load a page header (checks whether JS has successfully executed and there were no errors) can let us know that our app is entirely broken before our users do.

Better yet - by running this test (and hopefully - many more) in a CI/CD environment we ensure that it's not possible to push breaking changes to production.

In this lesson we're going to learn how to write a simple cypress test that's going to ensure that our app is not entirely broken

Mehmet N. Yarar
Mehmet N. Yarar
~ 3 years ago

Subtitle is not available for this video.