8
0
Эх сурвалжийг харах

Tests: Correct cleanup in BlockToolbar tests.

Krzysztof Krztoń 7 жил өмнө
parent
commit
b8e7da3311

+ 3 - 0
packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

@@ -43,6 +43,9 @@ describe( 'BlockToolbar', () => {
 	} );
 
 	afterEach( () => {
+		// Blur editor so `blockToolbar.buttonView` `window.resize` listener is detached.
+		editor.ui.focusTracker.isFocused = false;
+
 		element.remove();
 		return editor.destroy();
 	} );