Skip to content

Commit

Permalink
update e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed May 15, 2023
1 parent ce7954e commit 7bbf8cc
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions test/e2e/specs/editor/blocks/columns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,30 +106,16 @@ test.describe( 'Columns', () => {
},
],
} );
expect( await editor.getEditedPostContent() ).toBe(
`<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>1</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->`
);
await editor.clickBlockOptionsMenuItem( 'Ungroup' );
expect( await editor.getEditedPostContent() ).toBe(
`<!-- wp:paragraph -->
<p>1</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->`
);
await expect.poll( editor.getBlocks ).toMatchObject( [
{
name: 'core/paragraph',
attributes: { content: '1' },
},
{
name: 'core/paragraph',
attributes: { content: '2' },
},
] );
} );
} );

0 comments on commit 7bbf8cc

Please sign in to comment.