Injecting mobx objects into global window loses observability of objects in Cypress test #31883
Unanswered
Philip-Grozdanov
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.
-
I have a SAP UI5 typescript application and I have the following cypress test:
Both logs show that "Before Load is observable" and "After load is observable " are true .
EmployeeScheduleModel is makeAutoObservable(this); in the constructor looks like this :
Once the application starts , in the backend I read the object from the window like this
but now Is observable gives False ! Why when I inject objects in the context window then they are no longer observable? Is there a way to make my object keep being auto-observable from the context window?
Beta Was this translation helpful? Give feedback.
All reactions