From 25b6f5cfb68dc8a578bcc1054f6309bcc23c59a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Wed, 20 Apr 2022 14:37:22 +0200 Subject: [PATCH] e2e test: verify that user can type right after inserting the quote block (#40466) --- test/e2e/specs/editor/blocks/quote.spec.js | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test/e2e/specs/editor/blocks/quote.spec.js 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