Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cover forward deleting an empty heading end to end
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
  • Loading branch information
ellatrix and claude committed Aug 12, 2026
commit bef8476d7fe5ccf1fdbe788a9c62198b2777097c
29 changes: 29 additions & 0 deletions test/e2e/specs/editor/various/splitting-merging.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,35 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => {
);
} );

test( 'should forward delete an empty heading without transforming the next block', async ( {
editor,
page,
} ) => {
await editor.insertBlock( { name: 'core/heading' } );
await page.keyboard.press( 'Enter' );
await page.keyboard.type( 'My paragraph' );
await page.keyboard.press( 'ArrowUp' );

await expect.poll( editor.getBlocks ).toMatchObject( [
{ name: 'core/heading', attributes: { content: '' } },
{
name: 'core/paragraph',
attributes: { content: 'My paragraph' },
},
] );

await page.keyboard.press( 'Delete' );
// The caret lands at the start of the surviving paragraph.
await page.keyboard.type( '‸' );

await expect.poll( editor.getBlocks ).toMatchObject( [
{
name: 'core/paragraph',
attributes: { content: '‸My paragraph' },
},
] );
} );

test( 'should remove empty paragraph block on backspace', async ( {
editor,
page,
Expand Down