From f5efd2b0f7d6e6fb8a98e77c45d0072651ecb907 Mon Sep 17 00:00:00 2001 From: uros Date: Thu, 1 Aug 2024 21:44:22 +0200 Subject: [PATCH] - fix Fieldset.spec.js, Galleria.spec.js --- packages/primevue/src/fieldset/Fieldset.spec.js | 3 ++- packages/primevue/src/galleria/Galleria.spec.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/primevue/src/fieldset/Fieldset.spec.js b/packages/primevue/src/fieldset/Fieldset.spec.js index a1612f7eb..14c3112b6 100644 --- a/packages/primevue/src/fieldset/Fieldset.spec.js +++ b/packages/primevue/src/fieldset/Fieldset.spec.js @@ -20,7 +20,8 @@ describe('Fieldset.vue', () => { it('should exist', () => { expect(wrapper.find('.p-fieldset.p-component').exists()).toBe(true); expect(wrapper.find('.p-fieldset-legend').exists()).toBe(true); - expect(wrapper.find('.p-toggleable-content').exists()).toBe(true); + expect(wrapper.find('.p-fieldset-toggle-button').exists()).toBe(true); + expect(wrapper.find('.p-fieldset-content-container').exists()).toBe(true); }); it('toggleable check', async () => { diff --git a/packages/primevue/src/galleria/Galleria.spec.js b/packages/primevue/src/galleria/Galleria.spec.js index b9d3dffd0..3508ec0d2 100644 --- a/packages/primevue/src/galleria/Galleria.spec.js +++ b/packages/primevue/src/galleria/Galleria.spec.js @@ -48,17 +48,17 @@ describe('Gallleria.vue', () => { it('should exist', () => { expect(wrapper.find('.p-galleria.p-component').exists()).toBe(true); - expect(wrapper.findAll('.p-galleria-item-container > .p-galleria-item').length).toBe(1); + expect(wrapper.findAll('.p-galleria-items > .p-galleria-item').length).toBe(1); expect(wrapper.findAll('.p-galleria-thumbnail-item-active').length).toBe(2); }); it('should active item change', async () => { - expect(wrapper.find('.p-galleria-item-container img').attributes().alt).toBe('Description for Image 1'); + expect(wrapper.find('.p-galleria-items-container img').attributes().alt).toBe('Description for Image 1'); wrapper.vm.onActiveItemChange(1); await wrapper.setProps({ activeIndex: 1 }); - expect(wrapper.find('.p-galleria-item-container img').attributes().alt).toBe('Description for Image 2'); + expect(wrapper.find('.p-galleria-items-container img').attributes().alt).toBe('Description for Image 2'); expect(wrapper.emitted()['update:activeIndex'][0]).toEqual([1]); }); });