string
diff --git a/components/dropdown/__tests__/index.test.js b/components/dropdown/__tests__/index.test.js
index bb991dfd85..06631ea92a 100644
--- a/components/dropdown/__tests__/index.test.js
+++ b/components/dropdown/__tests__/index.test.js
@@ -25,7 +25,7 @@ describe('Dropdown', () => {
button
,
);
- expect(wrapper).toMatchRenderedSnapshot();
+ expect(wrapper.render()).toMatchSnapshot();
});
it('overlay is string', () => {
@@ -34,7 +34,7 @@ describe('Dropdown', () => {
button
,
);
- expect(wrapper).toMatchRenderedSnapshot();
+ expect(wrapper.render()).toMatchSnapshot();
});
it('support Menu expandIcon', async () => {
diff --git a/components/form/__tests__/index.test.js b/components/form/__tests__/index.test.js
index b741fbc473..bf6432db3e 100644
--- a/components/form/__tests__/index.test.js
+++ b/components/form/__tests__/index.test.js
@@ -796,7 +796,7 @@ describe('Form', () => {
,
);
- expect(wrapper).toMatchRenderedSnapshot();
+ expect(wrapper.render()).toMatchSnapshot();
});
it('noStyle should not work when hidden', () => {
@@ -807,7 +807,7 @@ describe('Form', () => {
,
);
- expect(wrapper).toMatchRenderedSnapshot();
+ expect(wrapper.render()).toMatchSnapshot();
});
});
diff --git a/components/layout/__tests__/__snapshots__/index.test.js.snap b/components/layout/__tests__/__snapshots__/index.test.js.snap
index c449351cd4..80c2074bd1 100644
--- a/components/layout/__tests__/__snapshots__/index.test.js.snap
+++ b/components/layout/__tests__/__snapshots__/index.test.js.snap
@@ -28,7 +28,7 @@ exports[`Layout rtl render component should be rendered correctly in RTL directi
exports[`Layout rtl render component should be rendered correctly in RTL direction 3`] = `
diff --git a/components/slider/__tests__/__snapshots__/index.test.js.snap b/components/slider/__tests__/__snapshots__/index.test.js.snap
index 7a8e625fd9..c86a5e63ad 100644
--- a/components/slider/__tests__/__snapshots__/index.test.js.snap
+++ b/components/slider/__tests__/__snapshots__/index.test.js.snap
@@ -9,7 +9,7 @@ exports[`Slider rtl render component should be rendered correctly in RTL directi
/>
`;
diff --git a/components/table/__tests__/__snapshots__/Table.test.js.snap b/components/table/__tests__/__snapshots__/Table.test.js.snap
index ffb1465e5d..e2027043c0 100644
--- a/components/table/__tests__/__snapshots__/Table.test.js.snap
+++ b/components/table/__tests__/__snapshots__/Table.test.js.snap
@@ -126,7 +126,7 @@ exports[`Table rtl render component should be rendered correctly in RTL directio
class="ant-table-content"
>
@@ -62,13 +64,13 @@ exports[`Tabs rtl render component should be rendered correctly in RTL direction
class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden"
>
@@ -102,7 +104,9 @@ exports[`Tabs rtl render component should be rendered correctly in RTL direction
>
@@ -124,36 +128,42 @@ exports[`Tabs tabBarGutter should work 1`] = `
>
@@ -167,13 +177,13 @@ exports[`Tabs tabBarGutter should work 1`] = `
class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden"
>
@@ -207,19 +217,25 @@ exports[`Tabs tabBarGutter should work 1`] = `
>
@@ -241,36 +257,42 @@ exports[`Tabs tabBarGutter should work 2`] = `
>