From 32fe57be3a50f8cb1fcb367c9c08758f6eda5129 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Tue, 23 Jan 2024 13:04:03 +0300 Subject: [PATCH] Update MultiSelect.spec.js --- components/lib/multiselect/MultiSelect.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lib/multiselect/MultiSelect.spec.js b/components/lib/multiselect/MultiSelect.spec.js index f0ea8b2da..0ec3c2c24 100644 --- a/components/lib/multiselect/MultiSelect.spec.js +++ b/components/lib/multiselect/MultiSelect.spec.js @@ -48,7 +48,7 @@ describe('MultiSelect.vue', () => { await wrapper.setProps({ modelValue: [wrapper.vm.options[0]] }); await wrapper.vm.onContainerClick(); - expect(wrapper.findAll('li.p-multiselect-item')[0].classes()).toContain('p-highlight'); + expect(wrapper.findAll('li.p-multiselect-item')[0].attributes()['data-p-highlight']).toBe('true'); expect(wrapper.find('.p-multiselect-label').text()).toBe('New York'); }); @@ -62,8 +62,8 @@ describe('MultiSelect.vue', () => { await wrapper.setProps({ modelValue: [wrapper.vm.options[0], wrapper.vm.options[1]] }); await wrapper.vm.onContainerClick(); - expect(wrapper.findAll('li.p-multiselect-item')[0].classes()).toContain('p-highlight'); - expect(wrapper.findAll('li.p-multiselect-item')[1].classes()).toContain('p-highlight'); + expect(wrapper.findAll('li.p-multiselect-item')[0].attributes()['data-p-highlight']).toBe('true'); + expect(wrapper.findAll('li.p-multiselect-item')[1].attributes()['data-p-highlight']).toBe('true'); }); it('should close panel', async () => {