Closed ddelic043 closed 4 years ago
Hi @ddelic043
XrmMockGenerator.Tab.createTab()
should push the new tab to formContext
automatically, so you shouldn't have to apply changes to the context yourself.
Did you figure out why the expected result wasn't changing?
We are using Event and Form Context in our forms, and when writing tests with xrm-mock, the changes that are done in the code are then not reflected in the test.
Here is the test result:
Expected: "Notes (2)" Received: "Notes"
This is how my test looks like:
This is the function that is being tested:
What am I doing wrong here? Do I need to apply the changes to the context somehow?