https://cypress.io logo
Check if you have any function declared as async, ...
# best-practices
d
Check if you have any function declared as async, apart from
deleteTestData
itself. Inside the task function, you should return a
new Promise
literally, and have a
resolve
command inside it. Check this case here: https://docs.cypress.io/api/commands/task#Return-a-Promise-from-an-asynchronous-task I was also trying something similar but this one seems like a better idea, I'll try on my end as well. Thanks for the insight.