Преглед изворни кода

Merge pull request #467 from ckeditor/t/ckeditor5-table/163

Tests: Updated a test which for no clear reason said that image's block toolbar is visible when the selection is inside a caption. See [ckeditor/ckeditor5-table#163](https://github.com/ckeditor/ckeditor5-table/issues/163).
Piotrek Koszuliński пре 7 година
родитељ
комит
bc4bbc5b9a
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

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

@@ -232,10 +232,11 @@ describe( 'BlockToolbar', () => {
 			expect( blockToolbar.buttonView.isVisible ).to.be.true;
 		} );
 
-		it( 'should display the button when the selection is inside the object', () => {
+		// This test makes no sense now, but so do all other tests here (see https://github.com/ckeditor/ckeditor5/issues/1522).
+		it( 'should not display the button when the selection is inside a limit element', () => {
 			setData( editor.model, '<image src="foo.jpg"><caption>f[]oo</caption></image>' );
 
-			expect( blockToolbar.buttonView.isVisible ).to.be.true;
+			expect( blockToolbar.buttonView.isVisible ).to.be.false;
 		} );
 
 		it( 'should not display the button when the selection is placed in the root element', () => {