Test fixes

pull/6880/head
tugcekucukoglu 2024-11-27 10:59:24 +03:00
parent 4c8bedfe0a
commit d0e084a1a0
1 changed files with 5 additions and 4 deletions

View File

@ -33,12 +33,13 @@ describe('Textarea.vue', () => {
});
it('should resize', async () => {
const firstHeight = wrapper.attributes().style;
await wrapper.setProps({ autoResize: true });
const textarea = wrapper.find('textarea');
await wrapper.vm.onInput({ target: { value: 'primevue' } });
await wrapper.vm.onInput({ target: { value: 'primevue\nprimevue\nprimevue' } });
await wrapper.vm.resize();
await wrapper.vm.$nextTick();
expect(wrapper.attributes().style).not.toEqual(firstHeight);
expect(textarea.element.style.height).not.toBe('auto');
});
});