Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Sep 28, 2024
1 parent 3dcc4a5 commit edcd865
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Virtual.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,14 @@ describe('Table.Virtual', () => {
expandable: {
expandedRowKeys: ['name0', 'name3'],
expandedRowRender: record => record.name,
expandedRowClassName: 'bamboo',
},
});

const expandedCells = container.querySelectorAll('.rc-table-expanded-row-cell');
expect(expandedCells).toHaveLength(2);
expect(expandedCells[0].textContent).toBe('name0');
expect(expandedCells[1].textContent).toBe('name3');
expect(container.querySelector<HTMLElement>('.rc-table-expanded-row')).toHaveClass('bamboo');
});

it('fixed', () => {
Expand Down

0 comments on commit edcd865

Please sign in to comment.