Closed paazmaya closed 1 year ago
I used to utilise example repos for testing new version e2e also upgrading it there
(uncaught exception)CypressError: Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise.
The command that returned the promise was:
> cy.screenshot()
The cy command you invoked inside the promise was:
> cy.task()
Because Cypress commands are already promise-like, you don't need to wrap them or return your own promise.
Cypress will resolve your command with whatever the final Cypress command yields.
The reason this is an error instead of a warning is because Cypress internally queues commands serially whereas Promises execute as soon as they are invoked. Attempting to reconcile this would prevent Cypress from ever resolving.
This is the current status.
:tada: This PR is included in version 5.7.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
How to test this fully?