Test fixes

pull/3997/head
Tuğçe Küçükoğlu 2023-05-19 15:16:12 +03:00
parent 58e97dc979
commit 3ce238b07f
4 changed files with 3 additions and 27 deletions

View File

@ -53,28 +53,4 @@ describe('Calendar.vue', () => {
expect(wrapper.vm.viewDate).toEqual(dateTwo); expect(wrapper.vm.viewDate).toEqual(dateTwo);
}); });
it('should respect custom icon settings', async () => {
await wrapper.setProps({
previousIcon: 'pi pi-discord',
nextIcon: 'pi pi-facebook',
incrementIcon: 'pi pi-linkedin',
decrementIcon: 'pi pi-microsoft',
inline: true
});
const previousIcon = wrapper.find('.p-datepicker-prev-icon');
const nextIcon = wrapper.find('.p-datepicker-next-icon');
expect(previousIcon.classes()).toContain('pi-discord');
expect(nextIcon.classes()).toContain('pi-facebook');
await wrapper.setProps({
timeOnly: true,
hourFormat: '12'
});
expect(wrapper.findAll('.pi-linkedin')).toHaveLength(3);
expect(wrapper.findAll('.pi-microsoft')).toHaveLength(3);
});
}); });

View File

@ -385,7 +385,7 @@ import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal'; import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';
import { ConnectedOverlayScrollHandler, DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils'; import { ConnectedOverlayScrollHandler, DomHandler, UniqueComponentId, ZIndexUtils } from 'primevue/utils';
import BaseCalendar from './BaseCalendar'; import BaseCalendar from './BaseCalendar.vue';
export default { export default {
name: 'Calendar', name: 'Calendar',

View File

@ -40,7 +40,7 @@ import MinusIcon from 'primevue/icons/minus';
import PlusIcon from 'primevue/icons/plus'; import PlusIcon from 'primevue/icons/plus';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';
import { UniqueComponentId } from 'primevue/utils'; import { UniqueComponentId } from 'primevue/utils';
import BaseFieldset from './BaseFieldset'; import BaseFieldset from './BaseFieldset.vue';
export default { export default {
name: 'Fieldset', name: 'Fieldset',

View File

@ -44,7 +44,7 @@ import MinusIcon from 'primevue/icons/minus';
import PlusIcon from 'primevue/icons/plus'; import PlusIcon from 'primevue/icons/plus';
import Ripple from 'primevue/ripple'; import Ripple from 'primevue/ripple';
import { UniqueComponentId } from 'primevue/utils'; import { UniqueComponentId } from 'primevue/utils';
import BasePanel from './BasePanel'; import BasePanel from './BasePanel.vue';
export default { export default {
name: 'Panel', name: 'Panel',