From 7bbf8cc0946bdfb8197642fc6fa49d2b9013550e Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Mon, 15 May 2023 16:34:41 +0300 Subject: [PATCH] update e2e test --- test/e2e/specs/editor/blocks/columns.spec.js | 34 ++++++-------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/test/e2e/specs/editor/blocks/columns.spec.js b/test/e2e/specs/editor/blocks/columns.spec.js index 4e88420058998f..247a49becc3735 100644 --- a/test/e2e/specs/editor/blocks/columns.spec.js +++ b/test/e2e/specs/editor/blocks/columns.spec.js @@ -106,30 +106,16 @@ test.describe( 'Columns', () => { }, ], } ); - expect( await editor.getEditedPostContent() ).toBe( - ` -
-
-

1

-
- - - -
-

2

-
-
-` - ); await editor.clickBlockOptionsMenuItem( 'Ungroup' ); - expect( await editor.getEditedPostContent() ).toBe( - ` -

1

- - - -

2

-` - ); + await expect.poll( editor.getBlocks ).toMatchObject( [ + { + name: 'core/paragraph', + attributes: { content: '1' }, + }, + { + name: 'core/paragraph', + attributes: { content: '2' }, + }, + ] ); } ); } );