dunson062786 / login-programmatically-into-auth0-with-cypress

15 stars 2 forks source link

Remove unnecessary 'then' before visit #3

Open rabinnankhwa opened 4 years ago

rabinnankhwa commented 4 years ago

Cypress automatically queues all the commands and runs through them one after another. So, there's no need for a 'then' as Cypress already waits for the setCookie command to complete before the visit command. https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Run-Serially