test: Adjust Drawer test case (#36964)

This commit is contained in:
二货爱吃白萝卜 2022-08-09 14:31:53 +08:00 committed by GitHub
parent e51cd35143
commit dcc114e042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -201,10 +201,7 @@ describe('Drawer', () => {
it('zIndex should work', () => {
const { container } = render(<Drawer getContainer={false} visible zIndex={903} />);
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,
});
});

View File

@ -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",