Proper way to overwrite cy.click() #14563
-
I'm trying to build an overwrite for
Basically, it should check one extra assertion (waiting for it to become true, since using
I found #3838, but it got closed without actually giving a solution to this issue. What is the proper way to overwrite click without causing issues with other methods that seem to call it internally? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In case anyone with a similar problem stumbles upon this in the future, I ended up going with this code:
|
Beta Was this translation helpful? Give feedback.
In case anyone with a similar problem stumbles upon this in the future, I ended up going with this code:
verify: false
does appear to be passed in on all internal calls tocy.click()
so this accomplishes what I was looking for. Relying on this undocumented option isn't ideal, but I was unable to find a better solution that didn't require modifying our existing tests to add this assertion.