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 () => {