File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
test/e2e/specs/editor/blocks Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -586,6 +586,17 @@ test.describe( 'Navigation block', () => {
586586 */
587587 await pageUtils . pressKeys ( 'access+z' ) ;
588588 await navigation . checkLabelFocus ( 'Cat' ) ;
589+
590+ /**
591+ * Test: Deleting with no more siblings should focus the navigation block again
592+ */
593+ await pageUtils . pressKeys ( 'access+z' ) ;
594+ await expect ( navigation . getNavBlock ( ) ) . toBeFocused ( ) ;
595+ // Wait until the nav block inserter is visible before we continue.
596+ await expect ( navigation . getNavBlockInserter ( ) ) . toBeVisible ( ) ;
597+ // Now the appender should be visible and reachable with an arrow down
598+ await pageUtils . pressKeys ( 'ArrowDown' ) ;
599+ await expect ( navigation . getNavBlockInserter ( ) ) . toBeFocused ( ) ;
589600 } ) ;
590601 } ) ;
591602
You can’t perform that action at this time.
0 commit comments