diff --git a/test/e2e/specs/editor/blocks/quote.spec.js b/test/e2e/specs/editor/blocks/quote.spec.js new file mode 100644 index 0000000000000..b526182cb2284 --- /dev/null +++ b/test/e2e/specs/editor/blocks/quote.spec.js @@ -0,0 +1,29 @@ +/** + * WordPress dependencies + */ +const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' ); + +test.describe( 'adding a quote', () => { + test( 'should allow the user to type right away', async ( { + page, + pageUtils, + } ) => { + await pageUtils.createNewPost(); + + // Inserting a quote block + await pageUtils.insertBlock( { + name: 'core/quote', + } ); + + // Type content right after. + await page.keyboard.type( 'Quote content' ); + + // Check the content + const content = await pageUtils.getEditedPostContent(); + expect( content ).toBe( + ` +

Quote content

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