- fix Dialog.spec.js
parent
f5efd2b0f7
commit
d8d2231782
|
@ -79,7 +79,7 @@ describe('closable', () => {
|
||||||
|
|
||||||
await wrapper.setProps({ visible: true });
|
await wrapper.setProps({ visible: true });
|
||||||
|
|
||||||
const icon = wrapper.find('.p-dialog-header-close-icon');
|
const icon = wrapper.find('.p-dialog-close-button .p-button-icon');
|
||||||
|
|
||||||
expect(icon.classes()).toContain('pi-discord');
|
expect(icon.classes()).toContain('pi-discord');
|
||||||
});
|
});
|
||||||
|
@ -111,7 +111,7 @@ describe('maximizable', () => {
|
||||||
await wrapper.setProps({ visible: true });
|
await wrapper.setProps({ visible: true });
|
||||||
await wrapper.setData({ maximized: false });
|
await wrapper.setData({ maximized: false });
|
||||||
|
|
||||||
const icon = wrapper.find('.p-dialog-header-maximize-icon');
|
const icon = wrapper.find('.p-dialog-maximize-button .p-button-icon');
|
||||||
|
|
||||||
expect(icon.classes()).toContain('pi-discord');
|
expect(icon.classes()).toContain('pi-discord');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue