We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f388b6c commit 7131691Copy full SHA for 7131691
tests/index.spec.tsx
@@ -1112,7 +1112,7 @@ describe('Cascader.Basic', () => {
1112
it('support custom cascader', () => {
1113
const { container } = render(<Cascader popupStyle={{ zIndex: 999 }} open />);
1114
const dropdown = container.querySelector('.rc-cascader-dropdown');
1115
- expect(dropdown?.style.zIndex).toBe('999');
+ expect(dropdown).toHaveStyle({ zIndex: '999' });
1116
});
1117
1118
it('`null` is a value in Cascader options should throw a warning', () => {
0 commit comments