https://cypress.io logo
I don't see the use of setting the vars on the tes...
# best-practices
m
I don't see the use of setting the vars on the test level when you are only using it in 3 statements. If they are not going to reused then i don't mind hardcoding them in the Cypress statement. If you do plan on using dynamic data. Then you can just create a function function doStuff(name,age,randomNumber){} Or a Cypress command cy.doSomething(name,age,random)