import { describe, it } from '@ephox/bedrock-client'; import { TinyHooks, TinyUiActions } from '@ephox/wrap-mcagar'; import Editor from 'tinymce/core/api/Editor'; import Plugin from 'tinymce/plugins/image/Plugin'; import { assertCleanHtml, assertInputValue, fillActiveDialog, generalTabSelectors } from '../../module/Helpers'; describe('browser.tinymce.plugins.image.plugin.DefaultEmptyTest', () => { const hook = TinyHooks.bddSetupLight({ plugins: 'image', indent: false, base_url: '/project/tinymce/js/tinymce' }, [ Plugin ]); it('TBA: default image dialog on empty data', async () => { const editor = hook.editor(); editor.execCommand('mceImage'); await TinyUiActions.pWaitForDialog(editor); assertInputValue(generalTabSelectors.src, ''); assertInputValue(generalTabSelectors.alt, ''); assertInputValue(generalTabSelectors.height, ''); assertInputValue(generalTabSelectors.width, ''); fillActiveDialog({ src: { value: 'src' }, alt: 'alt', dimensions: { width: '200', height: '100' } }); TinyUiActions.submitDialog(editor); assertCleanHtml('Checking output', editor, '

alt

'); }); });