- fix SpeedDial.spec.js, SplitButton.spec.js
parent
8bfea139e4
commit
dbe55014d4
|
@ -51,7 +51,7 @@ describe('SpeedDial.vue', () => {
|
||||||
|
|
||||||
expect(wrapper.emitted()['click'][0]).toEqual([{}]);
|
expect(wrapper.emitted()['click'][0]).toEqual([{}]);
|
||||||
expect(wrapper.emitted()['show'][0]).toEqual([]);
|
expect(wrapper.emitted()['show'][0]).toEqual([]);
|
||||||
expect(wrapper.find('.p-speeddial').classes()).toContain('p-speeddial-opened');
|
expect(wrapper.find('.p-speeddial').classes()).toContain('p-speeddial-open');
|
||||||
expect(wrapper.findAll('li.p-speeddial-item')[0].attributes().style).toBe('transition-delay: 0ms;');
|
expect(wrapper.findAll('li.p-speeddial-item')[0].attributes().style).toBe('transition-delay: 0ms;');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ describe('SpeedDial.vue', () => {
|
||||||
|
|
||||||
await wrapper.vm.onClick({});
|
await wrapper.vm.onClick({});
|
||||||
|
|
||||||
expect(wrapper.find('.p-speeddial').classes()).not.toContain('p-speeddial-opened');
|
expect(wrapper.find('.p-speeddial').classes()).not.toContain('p-speeddial-open');
|
||||||
expect(wrapper.findAll('li.p-speeddial-item')[wrapper.findAll('li.p-speeddial-item').length - 1].attributes().style).toBe('transition-delay: 0ms;');
|
expect(wrapper.findAll('li.p-speeddial-item')[wrapper.findAll('li.p-speeddial-item').length - 1].attributes().style).toBe('transition-delay: 0ms;');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,8 @@ describe('SplitButton.vue', () => {
|
||||||
it('should exist', () => {
|
it('should exist', () => {
|
||||||
expect(wrapper.find('.p-splitbutton.p-component').exists()).toBe(true);
|
expect(wrapper.find('.p-splitbutton.p-component').exists()).toBe(true);
|
||||||
expect(wrapper.find('.p-tieredmenu.p-component').exists()).toBe(true);
|
expect(wrapper.find('.p-tieredmenu.p-component').exists()).toBe(true);
|
||||||
expect(wrapper.findAll('li.p-menuitem').length).toBe(4);
|
expect(wrapper.findAll('li.p-tieredmenu-item').length).toBe(4);
|
||||||
expect(wrapper.find('.p-splitbutton-defaultbutton').exists()).toBe(true);
|
expect(wrapper.find('.p-splitbutton-button').exists()).toBe(true);
|
||||||
expect(wrapper.find('.p-button-label').text()).toBe('Save');
|
expect(wrapper.find('.p-button-label').text()).toBe('Save');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue