import { ref } from 'vue'; import { ConfigProvider } from '..'; import { Icon } from '../../icon'; import { later, mount } from '../../../test'; import Popup from '../../popup'; test('should render tag prop correctly', () => { const wrapper = mount(ConfigProvider, { props: { tag: 'section', }, }); expect(wrapper.html()).toMatchSnapshot(); }); test('should change icon class-prefix when using icon-prefix prop', () => { const wrapper = mount({ render() { return ( ); }, }); expect(wrapper.html()).toMatchSnapshot(); }); test('should change global z-index when using z-index prop', async () => { const show = ref(true); const wrapper = mount({ render() { return ( ); }, }); await later(); expect(wrapper.find('.van-popup').style.zIndex).toEqual('1'); });