From b0277da94f323b093d3899fab8c8bd1c3540f8dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 20 Dec 2022 15:16:42 +0300 Subject: [PATCH] Update PanelMenu.spec.js --- components/panelmenu/PanelMenu.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/panelmenu/PanelMenu.spec.js b/components/panelmenu/PanelMenu.spec.js index e0dc5019e..916191010 100644 --- a/components/panelmenu/PanelMenu.spec.js +++ b/components/panelmenu/PanelMenu.spec.js @@ -72,8 +72,9 @@ describe('PanelMenu', () => { await wrapper.vm.onHeaderClick({}, wrapper.vm.model[0]); expect(wrapper.find('.p-panelmenu-header-action > .p-submenu-icon').classes()).toContain('pi-chevron-down'); + setTimeout(() => { - expect(wrapper.findAll('.p-toggleable-content')[0].attributes().style).toBe(undefined); + expect(wrapper.findAll('.p-toggleable-content')[0].attributes().style).toBe(''); }, 25); });