I have web form that requires a group of commands (fill out previous pages of the form) to be used somewhat often. What's the best practice for dealing with this. My first thought is to create another js file, create functions to group these commands and then import into the test.js file and call the functions from there...
Or should I just used Cypress custom commands? I feel like these are better suited for creating new functionality/more general usage rather than making repetitive commands quicker.
Thoughts? Or do you need more context? I'm new to Cypress so bear with me!