xrm-mock
xrm-mock copied to clipboard
getVisbile, setVisible on formselector is not implemented. headersection, footersection on Ui obeject are also not available.
getVisbile, setVisible on formselector is not implemented. headersection, footersection on Ui obeject are also available.
How do I write unit testing for the following implementations.
To hide the form selector:
formContext.ui.formSelector.items.forEach((f)=>{
function(f){
f.setVisible(false);
}
}
To deal with footer and header sections.
formContext.ui.headerSection.setBodyVisible(false);
formContext.ui.headersection.setCommandbarVisible(false);
formContext.ui.footerSection.setVisble(false);