Explorar el Código

Tests: Stabilized the BlockToolbar test so it no longer depends on the focus of the browser.

Aleksander Nowodzinski hace 7 años
padre
commit
195e957ac3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

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

@@ -135,6 +135,8 @@ describe( 'BlockToolbar', () => {
 			} );
 
 			it( 'should hide the panel on toolbar blur', () => {
+				blockToolbar.toolbarView.focusTracker.isFocused = true;
+
 				blockToolbar.buttonView.fire( 'execute' );
 
 				expect( blockToolbar.panelView.isVisible ).to.be.true;