import { RealMouse, Waiter } from '@ephox/agar'; import { describe, it } from '@ephox/bedrock-client'; import { TinyAssertions, TinyHooks, TinySelections, TinyUiActions } from '@ephox/wrap-mcagar'; import Editor from 'tinymce/core/api/Editor'; describe('webdriver.tinymce.core.paste.CutTest', () => { const hook = TinyHooks.bddSetup({ base_url: '/project/tinymce/js/tinymce', toolbar: false, statusbar: false }, []); it('TBA: Set and select content, cut using edit menu and assert cut content', async () => { const editor = hook.editor(); editor.setContent('

abc

'); TinySelections.setSelection(editor, [ 0, 0 ], 1, [ 0, 0 ], 2); TinyUiActions.clickOnMenu(editor, 'button:contains("Edit")'); await TinyUiActions.pWaitForUi(editor, '*[role="menu"]'); await RealMouse.pClickOn('div[title="Cut"]'); await Waiter.pTryUntil('Cut is async now, so need to wait for content', () => TinyAssertions.assertContent(editor, '

ac

')); }); });