Use cy.skip in order to skip a test in a cypress suite

InstructorTomasz Łakomy

Share this video with your friends

Send Tweet

Some of our tests in a cypress suite can cause problems or have performance issues that we need to take care of.

Sometimes it's even necessary to skip one of the tests because our CI/CD pipeline is failing because of a randomly failing test - at this time we should spend time to improve that test as soon as we can.

Of course we could comment the test out or remove it from the codebase entirely, but a better solution is to use .skip in order to (temporarily) skip a cypress test - and that's exactly what we're going to learn in this quick lesson.