Merge pull request #4600 from FlipWarthog/test-fix
Fix #4599 - PR Checker build failingpull/4572/head
commit
eda7998d92
|
@ -79,6 +79,6 @@ describe('Button.vue', () => {
|
|||
}
|
||||
});
|
||||
|
||||
expect(wrapper.html()).toBe(`<button class="p-button p-component" type="button" data-pc-name="button" data-pc-section="root" data-pd-ripple="true"><span class="ml-2 font-bold">Default PrimeVue Button</span></button>`);
|
||||
expect(wrapper.html()).toBe(`<button class="p-button p-component" type="button" data-pc-name="button" data-pc-section="root"><span class="ml-2 font-bold">Default PrimeVue Button</span></button>`);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
|
@ -80,7 +80,10 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
onDropdownButtonClick(event) {
|
||||
if (event) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
this.$refs.menu.toggle({ currentTarget: this.$el, relatedTarget: this.$refs.button.$el });
|
||||
this.isExpanded = this.$refs.menu.visible;
|
||||
},
|
||||
|
|
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue