test: add test case for Spin (#46347)

This commit is contained in:
lijianan 2023-12-09 15:03:48 +08:00 committed by GitHub
parent eaeb75eb44
commit b5084a3da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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' });
});
});