import { describe, it } from '@ephox/bedrock-client'; import { TinyAssertions, TinyHooks, TinySelections } from '@ephox/wrap-mcagar'; import Editor from 'tinymce/core/api/Editor'; import Plugin from 'tinymce/plugins/table/Plugin'; import * as TableTestUtils from '../module/test/TableTestUtils'; describe('browser.tinymce.plugins.table.TableCellPropsStyleTest', () => { const hook = TinyHooks.bddSetupLight({ plugins: 'table', indent: false, base_url: '/project/tinymce/js/tinymce' }, [ Plugin ], true); it('TBA: change background color on selected table cells', async () => { const editor = hook.editor(); editor.setContent( '' + '' + '' + '' + '
ab
' ); TinySelections.setSelection(editor, [ 0, 0, 0, 1, 0 ], 1, [ 0, 0, 0, 1, 0 ], 1); editor.execCommand('mceTableCellProps'); TableTestUtils.gotoAdvancedTab(); TableTestUtils.setInputValue('label.tox-label:contains(Background color) + div>input.tox-textfield', 'red'); await TableTestUtils.pClickDialogButton(editor, true); TinyAssertions.assertContent(editor, '
ab
' ); }); });