overwrite 'type' command to add a small wait throws promise if .clear() is called before #19597
Unanswered
tnrich
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
-
Hey there,
Not sure quite why this is occurring. I'd like to add a .wait() before all
type
commands in my app by overwriting thetype
command. However I'm running into some issues with the promise quirks of cypress.Here's some minimal code to reproduce
This will trigger a cypress error complaining about returning a promise:
Can anyone please help me get past this hurdle? Thanks!
Related issues: #3166
Beta Was this translation helpful? Give feedback.
All reactions