From d7c44ce029e0144c41fa89554b17d5df6e2e5adb Mon Sep 17 00:00:00 2001 From: uros Date: Thu, 1 Aug 2024 16:05:49 +0200 Subject: [PATCH] - fix SelectButton.spec.js, Skeleton.spec.js --- packages/primevue/src/selectbutton/SelectButton.spec.js | 6 +++--- packages/primevue/src/skeleton/Skeleton.spec.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/primevue/src/selectbutton/SelectButton.spec.js b/packages/primevue/src/selectbutton/SelectButton.spec.js index 78aa66bb0..a3d7277f6 100644 --- a/packages/primevue/src/selectbutton/SelectButton.spec.js +++ b/packages/primevue/src/selectbutton/SelectButton.spec.js @@ -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); }); }); diff --git a/packages/primevue/src/skeleton/Skeleton.spec.js b/packages/primevue/src/skeleton/Skeleton.spec.js index c9be419dd..28ac8bf87 100644 --- a/packages/primevue/src/skeleton/Skeleton.spec.js +++ b/packages/primevue/src/skeleton/Skeleton.spec.js @@ -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'); }); });