Skip to content

Commit 6c8546c

Browse files
talldanimath
andcommitted
Change type of block used in e2e test to a separator
As mentioned in the comment above, this test will not work for blocks that contain an input. The image block now contains a url input field causing the test to fail. Co-authored-by: imath <math.viet@gmail.com>
1 parent 08d4c4c commit 6c8546c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/e2e/specs/__snapshots__/adding-blocks.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ exports[`adding blocks Should insert content using the placeholder and the regul
99
<blockquote class=\\"wp-block-quote\\"><p>Quote block</p></blockquote>
1010
<!-- /wp:quote -->
1111
12-
<!-- wp:image -->
13-
<figure class=\\"wp-block-image\\"><img alt=\\"\\"/></figure>
14-
<!-- /wp:image -->
12+
<!-- wp:separator -->
13+
<hr class=\\"wp-block-separator\\"/>
14+
<!-- /wp:separator -->
1515
1616
<!-- wp:paragraph -->
1717
<p></p>

test/e2e/specs/adding-blocks.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ describe( 'adding blocks', () => {
3030
await page.keyboard.press( 'ArrowDown' );
3131

3232
// Focus should be moved to block focus boundary on a block which does
33-
// not have its own inputs (e.g. image). Proceeding to press enter will
33+
// not have its own inputs (e.g. separator). Proceeding to press enter will
3434
// append the default block. Pressing backspace on the focused block
3535
// will remove it.
36-
await page.keyboard.type( '/image' );
36+
await page.keyboard.type( '/separator' );
3737
await page.keyboard.press( 'Enter' );
3838
await page.keyboard.press( 'Enter' );
3939
expect( await getEditedPostContent() ).toMatchSnapshot();

0 commit comments

Comments
 (0)