From 243723701023673cd2fe49f1ae849357feb3155f Mon Sep 17 00:00:00 2001 From: mimi Date: Tue, 3 May 2022 17:06:44 +0900 Subject: [PATCH] Add paragraph.spec.js --- .../e2e/specs/editor/blocks/paragraph.spec.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) rename packages/e2e-tests/specs/editor/blocks/paragraph.test.js => test/e2e/specs/editor/blocks/paragraph.spec.js (55%) diff --git a/packages/e2e-tests/specs/editor/blocks/paragraph.test.js b/test/e2e/specs/editor/blocks/paragraph.spec.js similarity index 55% rename from packages/e2e-tests/specs/editor/blocks/paragraph.test.js rename to test/e2e/specs/editor/blocks/paragraph.spec.js index 74f3f7f8cb98f..401e2b4f23d3f 100644 --- a/packages/e2e-tests/specs/editor/blocks/paragraph.test.js +++ b/test/e2e/specs/editor/blocks/paragraph.spec.js @@ -1,15 +1,20 @@ /** * WordPress dependencies */ -import { createNewPost, insertBlock } from '@wordpress/e2e-test-utils'; +const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' ); -describe( 'Paragraph', () => { - beforeEach( async () => { - await createNewPost(); +test.describe( 'Paragraph', () => { + test.beforeEach( async ( { pageUtils } ) => { + await pageUtils.createNewPost(); } ); - it( 'should output unwrapped editable paragraph', async () => { - await insertBlock( 'Paragraph' ); + test( 'should output unwrapped editable paragraph', async ( { + page, + pageUtils, + } ) => { + await pageUtils.insertBlock( { + name: 'core/paragraph', + } ); await page.keyboard.type( '1' ); const firstBlockTagName = await page.evaluate( () => {