You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub complained that the comment is too long when I tried to add the entire debug output here. Please be more specific with what you need here. Alternatively, the debug output should be trivial to reproduce with the test code provided above.
Other
No response
The text was updated successfully, but these errors were encountered:
Hi @micgro42. This is actually a function of how chaiworks in terms of its matchers (in this case the have.property matcher). This can be seen by changing the test code to:
@ryanthemanuel: Thank you for your quick response and suggestions! 🙏
(Though doesn't .then break retry-ability?)
However, I do miss somewhat it acknowledging the core point that this is a bug resulting in unexpected and undocumented behavior in Cypress.
I understand, that from Cypress' point of view, this is also an upstream bug in a library that you're using. But I still think this should remain open until Chai fixes that behavior and you can update it in your dependencies.
Current behavior
The instruction
is executing the
mw.inspect
method if it exists.That is fully unexpected and might lead to undefined behavior, including throwing an Exception and thus failing the test.
Desired behavior
The instruction
is not executing any methods of the
window.mw
object at all.Test code to reproduce
https://github.com/micgro42/cypress-MFE-inspect
Cypress Version
13.16.0
Node version
v20.15.0
Operating System
Ubuntu 24.04.1
Debug Logs
GitHub complained that the comment is too long when I tried to add the entire debug output here. Please be more specific with what you need here. Alternatively, the debug output should be trivial to reproduce with the test code provided above.
Other
No response
The text was updated successfully, but these errors were encountered: