diff --git a/components/upload/__tests__/upload.test.js b/components/upload/__tests__/upload.test.js index 434f4005e0..59577d3507 100644 --- a/components/upload/__tests__/upload.test.js +++ b/components/upload/__tests__/upload.test.js @@ -893,7 +893,7 @@ describe('Upload', () => { const frozenFileList = fileList.map(file => Object.freeze(file)); const { container: wrapper } = render(); - const rmBtn = wrapper.querySelectorAll('.ant-upload-list-item-card-actions-btn'); + const rmBtn = wrapper.querySelectorAll('.ant-upload-list-item-action'); fireEvent.click(rmBtn[rmBtn.length - 1]); // Wait for Upload async remove