import { Keys } from '@ephox/agar'; import { beforeEach, describe, it } from '@ephox/bedrock-client'; import { TinyAssertions, TinyContentActions, TinyHooks, TinySelections } from '@ephox/wrap-mcagar'; import Editor from 'tinymce/core/api/Editor'; describe('browser.tinymce.core.textpatterns.TriggerInlinePatternBeginningTest', () => { const hook = TinyHooks.bddSetupLight({ indent: false, base_url: '/project/tinymce/js/tinymce' }, [ ], true); beforeEach(() => { const editor = hook.editor(); editor.setContent(''); }); it('TBA: enter after first * in *a*', () => { const editor = hook.editor(); editor.setContent('

*a*

'); TinySelections.setCursor(editor, [ 0, 0 ], 1); TinyContentActions.keydown(editor, Keys.enter()); TinyAssertions.assertContent(editor, '

*

a*

'); }); it('TBA: enter after first * in *b*', () => { const editor = hook.editor(); editor.setContent('

a*b*

'); TinySelections.setCursor(editor, [ 0, 1 ], 1); TinyContentActions.keydown(editor, Keys.enter()); TinyAssertions.assertContent(editor, '

a*

b*

'); }); });