Create a Single Custom Cypress Command from Multiple Commands

Share this video with your friends

Send Tweet

Cypress provides a straightforward API that allows you to define custom commands. In this lesson, we’ll take a series of Cypress commands and wrap them up in a single custom command so we can easily repeat these steps in multiple specs.

~ 2 years ago

check this to pass default data to custom command