import { describe, it } from '@ephox/bedrock-client'; import { TinyAssertions, TinyHooks, TinySelections, TinyUiActions } from '@ephox/wrap-mcagar'; import Editor from 'tinymce/core/api/Editor'; import Plugin from 'tinymce/plugins/lists/Plugin'; describe('browser.tinymce.plugins.lists.ApplyListOnParagraphWithStylesTest', () => { const hook = TinyHooks.bddSetupLight({ indent: false, plugins: 'lists', toolbar: 'numlist bullist', base_url: '/project/tinymce/js/tinymce' }, [ Plugin ]); it('TBA: remove margin from p when applying list on it, but leave other styles', () => { const editor = hook.editor(); editor.setContent('

test

'); TinySelections.setCursor(editor, [ 0, 0 ], 0); TinyUiActions.clickOnToolbar(editor, 'button[aria-label="Bullet list"]'); TinyAssertions.assertContent(editor, ''); }); it('TBA: remove padding from p when applying list on it, but leave other styles', () => { const editor = hook.editor(); editor.setContent('

test

'); TinySelections.setCursor(editor, [ 0, 0 ], 0); TinyUiActions.clickOnToolbar(editor, 'button[aria-label="Bullet list"]'); TinyAssertions.assertContent(editor, ''); }); });