test: update table.filter test case (#48202)

* fix: 表格列在搜索情况下,国际化失效 #48110

* Update components/table/hooks/useFilter/FilterDropdown.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com>

* fix: 补充测试用例

* fix: update table.filter test case

---------

Signed-off-by: LingJinT <63446949+LingJinT@users.noreply.github.com>
Co-authored-by: l2015 <lingjt@dtdream.com>
Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
LingJinT 2024-04-01 10:46:05 +08:00 committed by GitHub
parent e665894e3a
commit 15553f54a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2080,7 +2080,7 @@ describe('Table.filter', () => {
});
it('renders empty element when search not found', () => {
jest.spyOn(console, 'error').mockImplementation(() => undefined);
const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => undefined);
const { container, unmount } = render(
createTable({
columns: [
@ -2115,6 +2115,7 @@ describe('Table.filter', () => {
expect(container.querySelector('.ant-empty')).toBeTruthy();
unmount();
errorSpy.mockRestore();
});
it('supports search input in filter menu', () => {