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

Tomasz Łakomy
InstructorTomasz Łakomy
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 4 years ago

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