diff --git a/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap b/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap
index 216a1eabe2ba..6c9daf135036 100644
--- a/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap
+++ b/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap
@@ -26610,7 +26610,7 @@ exports[`ConfigProvider components Table configProvider 1`] = `
>
|
|
|
|
|
|
{
fireEvent.click(container.querySelector('.ant-table-column-sorters')!);
expect(getNameColumn()?.getAttribute('aria-sort')).toEqual(null);
- expect(getNameColumn()?.getAttribute('aria-label')).toEqual(
- "this column's title is Name,this column is sortable",
- );
+ expect(getNameColumn()?.getAttribute('aria-label')).toEqual('Name');
});
it('sort records', () => {
diff --git a/components/table/__tests__/__snapshots__/Table.sorter.test.tsx.snap b/components/table/__tests__/__snapshots__/Table.sorter.test.tsx.snap
index ed08b4d683a5..ec12a8d68f04 100644
--- a/components/table/__tests__/__snapshots__/Table.sorter.test.tsx.snap
+++ b/components/table/__tests__/__snapshots__/Table.sorter.test.tsx.snap
@@ -6,7 +6,7 @@ exports[`Table.sorter renders sorter icon correctly 1`] = `
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
if (sorterOrder) {
cell['aria-sort'] = sorterOrder === 'ascend' ? 'ascending' : 'descending';
} else {
- cell['aria-label'] = `${
- displayTitle ? `this column's title is ${displayTitle},` : ''
- }this column is sortable`;
+ cell['aria-label'] = displayTitle || '';
}
cell.className = classNames(cell.className, `${prefixCls}-column-has-sorters`);
cell.tabIndex = 0;
|