diff --git a/components/table/__tests__/Table.virtual.test.tsx b/components/table/__tests__/Table.virtual.test.tsx index 05223eaab3..a9404d13b5 100644 --- a/components/table/__tests__/Table.virtual.test.tsx +++ b/components/table/__tests__/Table.virtual.test.tsx @@ -27,10 +27,12 @@ describe('Table.Virtual', () => { '.ant-table-wrapper .ant-table-tbody-virtual .ant-table-row:not(tr)', ), ).toHaveLength(1); - expect(container.querySelectorAll('.rc-virtual-list-holder .ant-table-cell')).toHaveLength(1); - expect(container.querySelector('.rc-virtual-list-holder .ant-table-cell')?.textContent).toEqual( - 'bamboo', - ); + expect( + container.querySelectorAll('.ant-table-tbody-virtual-holder .ant-table-cell'), + ).toHaveLength(1); + expect( + container.querySelector('.ant-table-tbody-virtual-holder .ant-table-cell')?.textContent, + ).toEqual('bamboo'); }); // warning from `rc-table` diff --git a/package.json b/package.json index f46f764dd7..70f71061e6 100644 --- a/package.json +++ b/package.json @@ -153,7 +153,7 @@ "rc-slider": "~10.5.0", "rc-steps": "~6.0.1", "rc-switch": "~4.1.0", - "rc-table": "~7.41.0", + "rc-table": "~7.42.0", "rc-tabs": "~14.0.0", "rc-textarea": "~1.6.3", "rc-tooltip": "~6.1.3",