Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Add test for return focus to sibling after deleting second item
  • Loading branch information
im3dabasia committed Aug 6, 2025
commit 28d19bdc7d709b6aae881f5da34e9bfe1877c148
6 changes: 6 additions & 0 deletions test/e2e/specs/editor/blocks/navigation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,12 @@ test.describe( 'Navigation block', () => {
await navigation.addCustomURL( 'https://wordpress.org' );
await navigation.expectToHaveTextSelected( 'wordpress.org' );

/**
* Test: Deleting second item returns focus to its sibling
*/
await pageUtils.pressKeys( 'access+z' );
await navigation.checkLabelFocus( 'Dog' );

// /**
// * Test: We can open and close the preview with the keyboard and escape
// * buttons from a top-level nav item using both the shortcut and toolbar
Expand Down