From a95c15702e40f18cf45aad30a5bfd9a7f07fe531 Mon Sep 17 00:00:00 2001 From: Illia Sheremetov Date: Wed, 30 Aug 2023 12:58:07 +0200 Subject: [PATCH] Test (engine): fix test --- .../ckeditor5-engine/tests/view/observer/selectionobserver.js | 1 + 1 file changed, 1 insertion(+) 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 );