What is the value you want to yield?
Advent day 3: solve the dreaded "Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise." error
Sometimes when writing a Cypress test you hit this error:
The error is very confusing and the “Learn more” link currently does not really shed any more light on why the error happens or what to do about it. In the video below I explain the reason for this error and how to avoid it. Enjoy!