mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
test: add test case for Spin (#46347)
This commit is contained in:
parent
eaeb75eb44
commit
b5084a3da9
@ -73,4 +73,10 @@ describe('Spin', () => {
|
||||
|
||||
errSpy.mockRestore();
|
||||
});
|
||||
|
||||
it('right style when fullscreen', () => {
|
||||
const { container } = render(<Spin fullscreen spinning />);
|
||||
const element = container.querySelector<HTMLDivElement>('.ant-spin.ant-spin-fullscreen');
|
||||
expect(element).not.toHaveStyle({ pointerEvents: 'none' });
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user