diff --git a/components/lib/button/Button.spec.js b/components/lib/button/Button.spec.js
index 4f9be51c2..a6595bac5 100644
--- a/components/lib/button/Button.spec.js
+++ b/components/lib/button/Button.spec.js
@@ -79,6 +79,6 @@ describe('Button.vue', () => {
}
});
- expect(wrapper.html()).toBe(``);
+ expect(wrapper.html()).toBe(``);
});
});
diff --git a/components/lib/rating/Rating.spec.js b/components/lib/rating/Rating.spec.js
index 0ab65c6f5..58b16df6d 100644
--- a/components/lib/rating/Rating.spec.js
+++ b/components/lib/rating/Rating.spec.js
@@ -37,7 +37,7 @@ describe('Rating.vue', () => {
it('When star is clicked, onOptionClick method should triggered', async () => {
await wrapper.find('.p-rating-item').trigger('click');
- expect(wrapper.find('.p-focus').exists()).toBe(true);
+ expect(wrapper.find('[data-p-focused="true"]').exists()).toBe(true);
});
it('When input focused, focusedOptionIndex value should changed', async () => {
diff --git a/components/lib/splitbutton/SplitButton.vue b/components/lib/splitbutton/SplitButton.vue
index 7a2f5a55a..53094d352 100755
--- a/components/lib/splitbutton/SplitButton.vue
+++ b/components/lib/splitbutton/SplitButton.vue
@@ -80,7 +80,10 @@ export default {
},
methods: {
onDropdownButtonClick(event) {
- event.preventDefault();
+ if (event) {
+ event.preventDefault();
+ }
+
this.$refs.menu.toggle({ currentTarget: this.$el, relatedTarget: this.$refs.button.$el });
this.isExpanded = this.$refs.menu.visible;
},
diff --git a/vitest.config.js b/vitest.config.js
index f1c2c7578..e79d16524 100644
--- a/vitest.config.js
+++ b/vitest.config.js
@@ -11,6 +11,9 @@ export default mergeConfig(
test: {
globals: true,
environment: 'jsdom',
+ onConsoleLog: (log, type) => {
+ if (type === 'stderr' && log.includes('Could not parse CSS stylesheet')) return false;
+ },
coverage: {
provider: 'istanbul',
reporter: ['text', 'json', 'html']