Explorar o código

Tests: Correct cleanup in BlockToolbar tests.

Krzysztof Krztoń %!s(int64=7) %!d(string=hai) anos
pai
achega
b8e7da3311
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

+ 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();
 	} );