diff --git a/packages/ckeditor5-engine/tests/view/observer/selectionobserver.js b/packages/ckeditor5-engine/tests/view/observer/selectionobserver.js index 7ebe11a9de7..7da556de42b 100644 --- a/packages/ckeditor5-engine/tests/view/observer/selectionobserver.js +++ b/packages/ckeditor5-engine/tests/view/observer/selectionobserver.js @@ -488,6 +488,7 @@ describe( 'SelectionObserver', () => { selectionObserver.listenTo( domMain, 'selectstart', selectStartChangedSpy, { priority: 'highest' } ); // The event was fired somewhere else in DOM. + domDocument.dispatchEvent( new Event( 'selectstart' ) ); expect( viewDocument.isSelecting ).to.be.false; sinon.assert.notCalled( selectStartChangedSpy );