Why this error "Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise" happen only when running the test remotely using Jenkins? #24793
Unanswered
TerryMeirC
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why this error "Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise" happen only when running the test remotely using Jenkins?
My code uses a recursive function as an implementation of the while loop. the recursive function returns a promise to ensure the returning value (function search type, after finding what was searched returning the value).
When I ran the test locally the test passed with no errors, but remotely using Jenkins I'm getting the error "Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise"
Beta Was this translation helpful? Give feedback.
All reactions