diff --git a/demos/playground/src/__tests__/e2e/Selection.spec.mjs b/demos/playground/src/__tests__/e2e/Selection.spec.mjs index b75ab7c..b492487 100644 --- a/demos/playground/src/__tests__/e2e/Selection.spec.mjs +++ b/demos/playground/src/__tests__/e2e/Selection.spec.mjs @@ -11,6 +11,7 @@ import { moveToLineBeginning, moveToPrevWord, pressShiftEnter, + selectAll, } from '../keyboardShortcuts/index.mjs'; import { assertHTML, @@ -264,4 +265,20 @@ test.describe('Selection', () => { `, ); }); + + test('Can select all with node selection', async ({ page, isPlainText }) => { + test.skip(isPlainText); + await focusEditor(page); + await page.keyboard.type('Text before'); + await insertSampleImage(page); + await page.keyboard.type('Text after'); + await selectAll(page); + await page.keyboard.press('Delete'); + await assertHTML( + page, + html` +


+ `, + ); + }); });