diff --git a/packages/primevue/src/button/Button.spec.js b/packages/primevue/src/button/Button.spec.js
index a6595bac5..fcb939668 100644
--- a/packages/primevue/src/button/Button.spec.js
+++ b/packages/primevue/src/button/Button.spec.js
@@ -79,6 +79,6 @@ describe('Button.vue', () => {
}
});
- expect(wrapper.html()).toBe(``);
+ expect(wrapper.html()).toBe(``);
});
});
diff --git a/packages/primevue/src/checkbox/Checkbox.spec.js b/packages/primevue/src/checkbox/Checkbox.spec.js
index 4cefeda50..8d15aa202 100644
--- a/packages/primevue/src/checkbox/Checkbox.spec.js
+++ b/packages/primevue/src/checkbox/Checkbox.spec.js
@@ -21,6 +21,6 @@ describe('Checkbox.vue', () => {
it('should exist', async () => {
await wrapper.setProps({ modelValue: true });
- expect(wrapper.find('.p-checkbox.p-highlight').exists()).toBe(true);
+ expect(wrapper.find('.p-checkbox.p-checkbox-checked').exists()).toBe(true);
});
});
diff --git a/packages/primevue/src/colorpicker/ColorPicker.spec.js b/packages/primevue/src/colorpicker/ColorPicker.spec.js
index e723de1bc..e0ce41a05 100644
--- a/packages/primevue/src/colorpicker/ColorPicker.spec.js
+++ b/packages/primevue/src/colorpicker/ColorPicker.spec.js
@@ -21,11 +21,11 @@ describe('ColorPicker.vue', () => {
it('should exist', () => {
expect(wrapper.find('.p-colorpicker.p-component').exists()).toBe(true);
- expect(wrapper.find('.p-colorpicker-preview.p-inputtext').exists()).toBe(true);
+ expect(wrapper.find('input.p-colorpicker-preview').exists()).toBe(true);
});
it('should input click triggered', async () => {
- const input = wrapper.find('.p-colorpicker-preview.p-inputtext');
+ const input = wrapper.find('input.p-colorpicker-preview');
const onInputClick = vi.spyOn(wrapper.vm, 'onInputClick');
await input.trigger('click');
@@ -37,7 +37,7 @@ describe('ColorPicker.vue', () => {
});
it('should mouse events triggered', async () => {
- const input = wrapper.find('.p-colorpicker-preview.p-inputtext');
+ const input = wrapper.find('input.p-colorpicker-preview');
await input.trigger('click');
@@ -49,11 +49,11 @@ describe('ColorPicker.vue', () => {
wrapper.vm.onColorMousedown(event);
expect(onColorMousedown).toHaveBeenCalled();
- expect(wrapper.find('.p-colorpicker-preview.p-inputtext').element.style.backgroundColor).not.toBe('rgb(255, 0, 0)');
+ expect(wrapper.find('input.p-colorpicker-preview').element.style.backgroundColor).not.toBe('rgb(255, 0, 0)');
wrapper.vm.onHueMousedown(event2);
expect(onHueMousedown).toHaveBeenCalled();
- expect(wrapper.find('.p-colorpicker-preview.p-inputtext').element.style.backgroundColor).not.toBe('rgb(255, 0, 0)');
+ expect(wrapper.find('input.p-colorpicker-preview').element.style.backgroundColor).not.toBe('rgb(255, 0, 0)');
});
});
diff --git a/packages/primevue/src/contextmenu/ContextMenu.spec.js b/packages/primevue/src/contextmenu/ContextMenu.spec.js
index 76f44940e..432e10528 100644
--- a/packages/primevue/src/contextmenu/ContextMenu.spec.js
+++ b/packages/primevue/src/contextmenu/ContextMenu.spec.js
@@ -154,8 +154,8 @@ describe('ContextMenu.vue', () => {
expect(show).toHaveBeenCalled();
expect(wrapper.find('.p-contextmenu.p-component').exists()).toBe(true);
- expect(wrapper.findAll('.p-menuitem').length).toBe(5);
- expect(wrapper.findAll('.p-menuitem-text')[0].text()).toBe('File');
+ expect(wrapper.findAll('.p-contextmenu-item').length).toBe(5);
+ expect(wrapper.findAll('.p-contextmenu-item-label')[0].text()).toBe('File');
});
it('should hide menu', async () => {