소스 검색

Tests: changed test to disconnect it with editor state.

Szymon Cofalik 8 년 전
부모
커밋
57e1dc484c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      packages/ckeditor5-heading/tests/heading.js

+ 3 - 0
packages/ckeditor5-heading/tests/heading.js

@@ -150,6 +150,9 @@ describe( 'Heading', () => {
 			it( 'works for the #buttonView', () => {
 				const buttonView = dropdown.buttonView;
 
+				// Setting manually paragraph.value to `false` because there might be some content in editor
+				// after initialisation (for example empty <p></p> inserted when editor is empty).
+				commands.paragraph.value = false;
 				expect( buttonView.label ).to.equal( 'Wybierz nagłówek' );
 				expect( buttonView.tooltip ).to.equal( 'Nagłówek' );