Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XrmMock.GridControlMock Does not implement setVisible() #84

Open
improving-jeffd opened this issue Dec 29, 2022 · 0 comments
Open

XrmMock.GridControlMock Does not implement setVisible() #84

improving-jeffd opened this issue Dec 29, 2022 · 0 comments

Comments

@improving-jeffd
Copy link

The following code mocks a grid control:
XrmMockGenerator.initialise(); XrmMockGenerator.Control.createGrid("ContactGrid", true, "Contacts");
However if the function under test is purposed to hide/show that grid the test will fail with the following error:
"Method not implemented."

This appears to be due to src/xrm-mock/controls/gridcontrol/gridcontrol.mock.ts implementing a setVisible function that just throws the error. I suppose this is probably planned for a future release... but it could also be moved to the extended ControlMock class and implemented there.

BetimBeja added a commit to BetimBeja/camelCaseDave__xrm-mock that referenced this issue Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant