Explorar el Código

Tests: Correct cleanup in BlockToolbar tests.

Krzysztof Krztoń hace 7 años
padre
commit
b8e7da3311
Se han modificado 1 ficheros con 3 adiciones y 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();
 	} );