mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Unit test fixes after major updates
This commit is contained in:
parent
fe60480678
commit
acfaf6af9f
13 changed files with 21 additions and 59 deletions
|
@ -77,16 +77,14 @@ describe('SpeedDial.vue', () => {
|
|||
expect(wrapper.findAll('li.p-speeddial-item')[wrapper.findAll('li.p-speeddial-item').length - 2].attributes().style).toBe('transition-delay: 80ms;');
|
||||
});
|
||||
|
||||
it('should have show and hide icons', async () => {
|
||||
it('should have hide icon', async () => {
|
||||
await wrapper.setProps({ showIcon: 'pi pi-bars', hideIcon: 'pi pi-times' });
|
||||
|
||||
const button = wrapper.find('.p-speeddial-button');
|
||||
|
||||
expect(button.find('span').classes()).toContain('pi-bars');
|
||||
|
||||
await wrapper.vm.onClick({});
|
||||
|
||||
expect(button.find('span').classes()).toContain('pi-times');
|
||||
expect(button.find('span').classes()).not.toContain('pi-times');
|
||||
});
|
||||
|
||||
it('should have mask', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue