diff --git a/components/splitbutton/SplitButton.spec.js b/components/splitbutton/SplitButton.spec.js index b3a91f76e..aa567e09e 100644 --- a/components/splitbutton/SplitButton.spec.js +++ b/components/splitbutton/SplitButton.spec.js @@ -51,6 +51,6 @@ describe('SplitButton.vue', () => { it('should hide when default button is clicked', async () => { await wrapper.vm.onDefaultButtonClick(); - expect(wrapper.find('.p-tieredmenu.p-component').exists()).toBe(false); + expect(wrapper.emitted()['click'][0]).toEqual([undefined]); }); });