Use cy.only in order to run only a single test in a cypress test suite

Share this video with your friends

Send Tweet

Developers need to focus to do their job right.

Cypress tests are no different - sometimes we have a large suite of cypress tests but unfortunately one of them is failing :(

We're lucky that it's only one, but when we dig in and debug, we find ourselves being slowed done because we need to wait for all those passing tests to finish in order to focus on the failing one.

In this quick lesson we're going to learn how to use .only in cypress suite in order to run only a single test that we've chosen.