8
0
Просмотр исходного кода

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

Aleksander Nowodzinski 7 лет назад
Родитель
Сommit
195e957ac3
1 измененных файлов с 2 добавлено и 0 удалено
  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;