From dcc114e042cfdbd7f6aedcb24e4b56760a80c39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Tue, 9 Aug 2022 14:31:53 +0800 Subject: [PATCH] test: Adjust Drawer test case (#36964) --- components/drawer/__tests__/Drawer.test.js | 5 +---- package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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",