Skip to content

Commit c52d353

Browse files
committed
chore(pivot-grid.spec): test dot values scenario
1 parent 77d76ce commit c52d353

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.spec.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,22 @@ describe('IgxPivotGrid #pivotGrid', () => {
807807
expect(pivotGrid.nativeElement.clientWidth - expectedSize).toBeLessThan(50, "should take sum of columns as width.");
808808
});
809809

810+
it('should render cell values for dimension columns containing dots - issue #16445', () => {
811+
let data = fixture.componentInstance.data;
812+
data = data.map(item => {
813+
return {
814+
...item,
815+
Country: `${item['Country']}.Test`
816+
};
817+
});
818+
819+
fixture.componentInstance.data = [...data];
820+
fixture.detectChanges();
821+
822+
const cell = fixture.componentInstance.pivotGrid.gridAPI.get_cell_by_index(0, 'Bulgaria.Test-UnitsSold');
823+
expect(cell.value).not.toBeUndefined();
824+
});
825+
810826
describe('IgxPivotGrid Features #pivotGrid', () => {
811827
it('should show excel style filtering via dimension chip.', async () => {
812828
const pivotGrid = fixture.componentInstance.pivotGrid;

0 commit comments

Comments
 (0)