Skip to content

Commit

Permalink
Try an alternative to pressing enter (#43734)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo authored Aug 31, 2022
1 parent a915113 commit 8bdfdff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
showBlockToolbar,
setBrowserViewport,
waitForWindowDimensions,
clickBlockAppender,
} from '@wordpress/e2e-test-utils';

describe( 'Draggable block', () => {
Expand Down Expand Up @@ -38,7 +39,7 @@ describe( 'Draggable block', () => {
} );

it( 'can drag and drop to the top of a block list', async () => {
await page.keyboard.press( 'Enter' );
await clickBlockAppender();
await page.keyboard.type( '1' );
await page.keyboard.press( 'Enter' );
await page.keyboard.type( '2' );
Expand Down Expand Up @@ -80,7 +81,7 @@ describe( 'Draggable block', () => {
} );

it( 'can drag and drop to the bottom of a block list', async () => {
await page.keyboard.press( 'Enter' );
await clickBlockAppender();
await page.keyboard.type( '1' );
await page.keyboard.press( 'Enter' );
await page.keyboard.type( '2' );
Expand Down

0 comments on commit 8bdfdff

Please sign in to comment.