Skip to content
Discussion options

You must be logged in to vote

You cannot use the async keyword in your custom command definitions like Cypress.Commands.add("createDummyAccount", async () => {, it will NOT work. Cypress commands are already asynchronous and I bet this async causes unpredictable behavior.

See https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous and https://glebbahmutov.com/blog/writing-custom-cypress-command/

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nicholastmosher
Comment options

@nicholastmosher
Comment options

@jennifer-shehane
Comment options

Answer selected by nicholastmosher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants