diff --git a/components/drawer/__tests__/Drawer.test.js b/components/drawer/__tests__/Drawer.test.js index 0f506c6aa6..a8ef246b43 100644 --- a/components/drawer/__tests__/Drawer.test.js +++ b/components/drawer/__tests__/Drawer.test.js @@ -201,10 +201,7 @@ describe('Drawer', () => { it('zIndex should work', () => { const { container } = render(); - expect(container.querySelector('.ant-drawer-mask')).toHaveStyle({ - zIndex: 903, - }); - expect(container.querySelector('.ant-drawer-content-wrapper')).toHaveStyle({ + expect(container.querySelector('.ant-drawer')).toHaveStyle({ zIndex: 903, }); }); diff --git a/package.json b/package.json index 5983d16412..245aff3bd8 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "rc-checkbox": "~2.3.0", "rc-collapse": "~3.3.0", "rc-dialog": "~8.9.0", - "rc-drawer": "~5.1.0-alpha.1", + "rc-drawer": "~5.1.0", "rc-dropdown": "~4.0.0", "rc-field-form": "~1.27.0", "rc-image": "~5.7.0",