Skip to content

Commit 8bdfdff

Browse files
authored
Try an alternative to pressing enter (#43734)
1 parent a915113 commit 8bdfdff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/e2e-tests/specs/editor/various/draggable-block.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
showBlockToolbar,
1010
setBrowserViewport,
1111
waitForWindowDimensions,
12+
clickBlockAppender,
1213
} from '@wordpress/e2e-test-utils';
1314

1415
describe( 'Draggable block', () => {
@@ -38,7 +39,7 @@ describe( 'Draggable block', () => {
3839
} );
3940

4041
it( 'can drag and drop to the top of a block list', async () => {
41-
await page.keyboard.press( 'Enter' );
42+
await clickBlockAppender();
4243
await page.keyboard.type( '1' );
4344
await page.keyboard.press( 'Enter' );
4445
await page.keyboard.type( '2' );
@@ -80,7 +81,7 @@ describe( 'Draggable block', () => {
8081
} );
8182

8283
it( 'can drag and drop to the bottom of a block list', async () => {
83-
await page.keyboard.press( 'Enter' );
84+
await clickBlockAppender();
8485
await page.keyboard.type( '1' );
8586
await page.keyboard.press( 'Enter' );
8687
await page.keyboard.type( '2' );

0 commit comments

Comments
 (0)