Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


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


    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