diff --git a/test/e2e/specs/editor/plugins/format-api.spec.js b/test/e2e/specs/editor/plugins/format-api.spec.js index a294a2034f055..1b1d3b3d4173f 100644 --- a/test/e2e/specs/editor/plugins/format-api.spec.js +++ b/test/e2e/specs/editor/plugins/format-api.spec.js @@ -34,6 +34,28 @@ test.describe( 'Using Format API', () => { expect( content ).toBe( `

First paragraph

+` + ); + } ); + + test( 'should show unknow formatting button', async ( { + editor, + page, + } ) => { + await editor.insertBlock( { + name: 'core/paragraph', + attributes: { content: 'test' }, + } ); + expect( await editor.getEditedPostContent() ).toBe( + ` +

test

+` + ); + await page.keyboard.press( 'ArrowRight' ); + await editor.clickBlockToolbarButton( 'Clear Unknown Formatting' ); + expect( await editor.getEditedPostContent() ).toBe( + ` +

test

` ); } );