- fix SelectButton.spec.js, Skeleton.spec.js

pull/6170/head
uros 2024-08-01 16:05:49 +02:00
parent dbe55014d4
commit d7c44ce029
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ describe('SelectButton.vue', () => {
it('should exist', () => {
expect(wrapper.find('.p-selectbutton.p-component').exists()).toBe(true);
expect(wrapper.findAll('.p-button.p-component').length).toBe(2);
expect(wrapper.findAll('.p-togglebutton.p-component').length).toBe(2);
});
it('should option select', async () => {
@ -25,7 +25,7 @@ describe('SelectButton.vue', () => {
await wrapper.setProps({ modelValue: wrapper.vm.options[0] });
expect(wrapper.findAll('.p-button.p-component')[0].classes()).toContain('p-highlight');
expect(wrapper.findAll('.p-togglebutton.p-component')[0].classes()).toContain('p-togglebutton-checked');
});
});
@ -50,6 +50,6 @@ describe('multiple select', () => {
it('should select', async () => {
await wrapper.setProps({ modelValue: wrapper.vm.options });
expect(wrapper.findAll('.p-highlight').length).toBe(3);
expect(wrapper.findAll('.p-togglebutton-checked').length).toBe(3);
});
});

View File

@ -33,6 +33,6 @@ describe('Skeleton.vue', () => {
it('should remove animation', async () => {
await wrapper.setProps({ animation: 'none' });
expect(wrapper.find('.p-skeleton').classes()).toContain('p-skeleton-none');
expect(wrapper.find('.p-skeleton').classes()).toContain('p-skeleton-animation-none');
});
});