Skip to content

Commit

Permalink
e2e test: style variations
Browse files Browse the repository at this point in the history
- update paragraph representation
- select quote block
  • Loading branch information
oandregal committed Apr 29, 2022
1 parent 9551cf1 commit 16e54e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
40 changes: 0 additions & 40 deletions packages/e2e-tests/specs/editor/various/style-variation.test.js

This file was deleted.

7 changes: 6 additions & 1 deletion test/e2e/specs/editor/various/style-variation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ test.describe( 'adding blocks', () => {
attributes: { value: '<p>Quote content</p>' },
} );

// Select the quote block.
await page.keyboard.press( 'ArrowDown' );

await pageUtils.clickBlockToolbarButton( 'Quote' );

await page.click( 'role=menuitem[name="Plain"i]' );
Expand All @@ -24,7 +27,9 @@ test.describe( 'adding blocks', () => {
const content = await pageUtils.getEditedPostContent();
expect( content ).toBe(
`<!-- wp:quote {"className":"is-style-plain"} -->
<blockquote class="wp-block-quote is-style-plain"><p>Quote content</p></blockquote>
<blockquote class="wp-block-quote is-style-plain"><!-- wp:paragraph -->
<p>Quote content</p>
<!-- /wp:paragraph --></blockquote>
<!-- /wp:quote -->`
);
} );
Expand Down

0 comments on commit 16e54e9

Please sign in to comment.