diff --git a/components/input/__tests__/textarea.test.js b/components/input/__tests__/textarea.test.js
index <HASH>..<HASH> 100644
--- a/components/input/__tests__/textarea.test.js
+++ b/components/input/__tests__/textarea.test.js
@@ -115,6 +115,7 @@ describe('TextArea', () => {
           },
         },
       ]);
+    await Promise.resolve();
 
     expect(onResize).toHaveBeenCalledWith(
       expect.objectContaining({
diff --git a/components/page-header/__tests__/index.test.js b/components/page-header/__tests__/index.test.js
index <HASH>..<HASH> 100644
--- a/components/page-header/__tests__/index.test.js
+++ b/components/page-header/__tests__/index.test.js
@@ -112,9 +112,10 @@ describe('PageHeader', () => {
     expect(render(wrapper)).toMatchSnapshot();
   });
 
-  it('change container width', () => {
+  it('change container width', async () => {
     const wrapper = mount(<PageHeader title="Page Title" extra="extra" />);
     wrapper.triggerResize();
+    await Promise.resolve();
     wrapper.update();
     expect(wrapper.find('.ant-page-header').hasClass('ant-page-header-compact')).toBe(true);
   });
test: Fix resize related test case