Hey guys, I am in a moment to decide the approach ...
# best-practices
b
Hey guys, I am in a moment to decide the approach of interacting with the backend by http requests to feed the testing environment with the test data or set it in a preconditioned state. I know that cypress has a dedicated method for making http requests - cy.request() but I found this article: https://spin.atomicobject.com/2021/07/30/cypress-tasks-vs-commands/ where it is advised to use cy.task() for interaction with the backend - "If you need to run a promise or interact with your backend, go with a task". So I am a little bit confused. What is best practise here? What would you suggest?