Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Aug 16, 2023
1 parent 8bd95b5 commit c96f39b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/e2e/specs/editor/various/list-view.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,15 +479,17 @@ test.describe( 'List View', () => {
await expect
.poll(
listViewUtils.getBlocksWithA11yAttributes,
'Duplicating a block should retain focus and selection on existing block.'
'Duplicating a block should retain selection on existing block, move focus to duplicated block.'
)
.toMatchObject( [
{ name: 'core/group' },
{ name: 'core/columns' },
{ name: 'core/file', selected: true, focused: true },
{ name: 'core/file' },
{ name: 'core/file', selected: true },
{ name: 'core/file', focused: true },
] );

// Move focus to the first file block, and then delete it.
await page.keyboard.press( 'ArrowUp' );
await page.keyboard.press( 'Delete' );
await expect
.poll(
Expand Down

0 comments on commit c96f39b

Please sign in to comment.