Posted 24 January 2018, 11:56 pm EST
Hi,
we are writing unit test cases for wijmo using jasmine framework.
We were able to start with the sample test cases like grid initialization,triggering selection change and item formatter event, going forward we couldn’t solve the below issues
const countryCellElement: Element | null = gridNativeElement.querySelectorAll(‘.wj-colheaders .wj-cell.wj-header’)[0];
expect(countryCellElement).not.toBeNull();
if (countryCellElement) {
expect(countryCellElement.textContent).toEqual(‘Name’);
}
The countryCellElement is returning ''undefined".
This is not passing the test case as expected.
2.We need to check if all the header columns are present/defined,could that be achieved anyway?
3.we want to test the wijmo functions such as getcelldata,setcelldata etc.
Would be great if you could provide with more sample test cases for wijmo flex grid.
Let us know if you require additional details
Thanks in Advance!