mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix: test case
This commit is contained in:
parent
a649267905
commit
257d648274
@ -893,7 +893,7 @@ describe('Upload', () => {
|
||||
const frozenFileList = fileList.map(file => Object.freeze(file));
|
||||
|
||||
const { container: wrapper } = render(<Upload fileList={frozenFileList} />);
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user