Skip to content

Commit

Permalink
test: make getBodyCellContent helper use virtual row index (#6223)
Browse files Browse the repository at this point in the history
  • Loading branch information
sissbruecker authored and yuriy-fix committed Sep 26, 2023
1 parent 16cd3b5 commit f0c4142
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/grid/test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ export const getHeaderCellContent = (grid, row, col) => {
};

export const getBodyCellContent = (grid, row, col) => {
const container = grid.$.items;
return getContainerCellContent(container, row, col);
const physicalItems = getPhysicalItems(grid);
const physicalRow = physicalItems.find((item) => item.index === row);
const cells = getRowCells(physicalRow);
return getCellContent(cells[col]);
};

export const getContainerCellContent = (container, row, col) => {
Expand Down

0 comments on commit f0c4142

Please sign in to comment.