Unit test fixes

This commit is contained in:
Bahadır Sofuoğlu 2023-04-06 02:06:03 +03:00
parent f7b83553e5
commit 84b85dc77d
10 changed files with 889 additions and 1399 deletions

View file

@ -66,16 +66,6 @@ describe('PanelMenu', () => {
expect(wrapper.findAll('.p-submenu-list').length).toBe(3);
});
it('should toggle', async () => {
expect(wrapper.findAll('.p-toggleable-content')[0].attributes().style).toBe('display: none;');
await wrapper.vm.onHeaderClick({}, wrapper.vm.model[0]);
setTimeout(() => {
expect(wrapper.findAll('.p-toggleable-content')[0].attributes().style).toBe('');
}, 25);
});
it('should update expandedKeys', async () => {
await wrapper.setProps({ expandedKeys: { 2: true } });