diff --git a/src/utils/createComponentWithOrderedProps.ts b/src/utils/createComponentWithOrderedProps.ts index 1a22edb7..be2a5a23 100644 --- a/src/utils/createComponentWithOrderedProps.ts +++ b/src/utils/createComponentWithOrderedProps.ts @@ -14,7 +14,9 @@ export default function createComponentWithOrderedProps

{ expect(element).to.have.value(value); }); + + it('should not override value set on DOM element on rerender', () => { + const { container, rerender } = render(); + + const element = container.querySelector('vaadin-date-time-picker'); + expect(element).to.exist; + element!.value = '2020-01-01T15:00'; + expect(element).to.have.value('2020-01-01T15:00'); + + rerender(); + expect(element).to.have.value('2020-01-01T15:00'); + }); });