|
@@ -116,6 +116,7 @@ describe( 'ColorUI', () => {
|
|
|
beforeEach( () => {
|
|
beforeEach( () => {
|
|
|
command = editor.commands.get( 'testColorCommand' );
|
|
command = editor.commands.get( 'testColorCommand' );
|
|
|
dropdown = editor.ui.componentFactory.create( 'testColor' );
|
|
dropdown = editor.ui.componentFactory.create( 'testColor' );
|
|
|
|
|
+ dropdown.isOpen = true;
|
|
|
|
|
|
|
|
dropdown.render();
|
|
dropdown.render();
|
|
|
} );
|
|
} );
|
|
@@ -308,6 +309,7 @@ describe( 'ColorUI', () => {
|
|
|
|
|
|
|
|
colors.forEach( test => {
|
|
colors.forEach( test => {
|
|
|
it( `tested color "${ test.color }" translated to "${ test.label }".`, () => {
|
|
it( `tested color "${ test.color }" translated to "${ test.label }".`, () => {
|
|
|
|
|
+ dropdown.isOpen = true;
|
|
|
const colorGrid = dropdown.colorTableView.items.get( 1 );
|
|
const colorGrid = dropdown.colorTableView.items.get( 1 );
|
|
|
const tile = colorGrid.items.find( colorTile => test.color === colorTile.color );
|
|
const tile = colorGrid.items.find( colorTile => test.color === colorTile.color );
|
|
|
|
|
|