Browse Source

Tests: Fixed broken DropdownView test (case with the list).

Aleksander Nowodzinski 7 years ago
parent
commit
2fbbe65250
1 changed files with 8 additions and 4 deletions
  1. 8 4
      packages/ckeditor5-ui/tests/dropdown/manual/dropdown.js

+ 8 - 4
packages/ckeditor5-ui/tests/dropdown/manual/dropdown.js

@@ -45,10 +45,14 @@ function testList() {
 	const collection = new Collection( { idProperty: 'label' } );
 
 	[ '0.8em', '1em', '1.2em', '1.5em', '2.0em', '3.0em' ].forEach( font => {
-		collection.add( new Model( {
-			label: font,
-			style: `font-size: ${ font }`
-		} ) );
+		collection.add( {
+			type: 'button',
+			model: new Model( {
+				label: font,
+				labelStyle: `font-size: ${ font }`,
+				withText: true
+			} )
+		} );
 	} );
 
 	const dropdownView = createDropdown( {} );