Selaa lähdekoodia

Tests: Moved a test that verifies the automatic toolbar items grouping to the ClassicEditorUIView tests.

Aleksander Nowodzinski 6 vuotta sitten
vanhempi
sitoutus
81a5dfd4c8

+ 0 - 4
packages/ckeditor5-editor-classic/tests/classiceditorui.js

@@ -165,10 +165,6 @@ describe( 'ClassicEditorUI', () => {
 		} );
 
 		describe( 'view.toolbar', () => {
-			it( 'has automatic items grouping enabled', () => {
-				expect( view.toolbar.shouldGroupWhenFull ).to.be.true;
-			} );
-
 			describe( '#items', () => {
 				it( 'are filled with the config.toolbar (specified as an Array)', () => {
 					return VirtualClassicTestEditor

+ 4 - 0
packages/ckeditor5-editor-classic/tests/classiceditoruiview.js

@@ -58,6 +58,10 @@ describe( 'ClassicEditorUIView', () => {
 			it( 'is put into the "stickyPanel.content" collection', () => {
 				expect( view.stickyPanel.content.get( 0 ) ).to.equal( view.toolbar );
 			} );
+
+			it( 'has automatic items grouping enabled', () => {
+				expect( view.toolbar.options.shouldGroupWhenFull ).to.be.true;
+			} );
 		} );
 
 		describe( '#editable', () => {