Skip to content

Commit

Permalink
Update roving toolbar test to use alt+f10 and escape
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Oct 6, 2023
1 parent 5a3fb8a commit ac289cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ test.describe( 'Toolbar roving tabindex', () => {
await page.keyboard.press( 'ArrowRight' );
await ToolbarRovingTabindexUtils.expectLabelToHaveFocus( 'Move up' );
await pageUtils.pressKeys( 'Tab' );
await pageUtils.pressKeys( 'shift+Tab' );
await pageUtils.pressKeys( 'alt+F10' );
await ToolbarRovingTabindexUtils.expectLabelToHaveFocus( 'Move up' );
} );

Expand Down Expand Up @@ -167,9 +167,9 @@ class ToolbarRovingTabindexUtils {
await this.expectLabelToHaveFocus( currentBlockTitle );
await this.page.keyboard.press( 'ArrowRight' );
await this.expectLabelToHaveFocus( 'Move up' );
await this.pageUtils.pressKeys( 'Tab' );
await this.pageUtils.pressKeys( 'Escape' );
await this.expectLabelToHaveFocus( currentBlockLabel );
await this.pageUtils.pressKeys( 'shift+Tab' );
await this.pageUtils.pressKeys( 'alt+F10' );
await this.expectLabelToHaveFocus( 'Move up' );
}

Expand Down Expand Up @@ -200,7 +200,7 @@ class ToolbarRovingTabindexUtils {
await this.expectLabelToHaveFocus( 'Block: Group' );
await this.page.keyboard.press( 'ArrowRight' );
await this.expectLabelToHaveFocus( currentBlockLabel );
await this.pageUtils.pressKeys( 'shift+Tab' );
await this.pageUtils.pressKeys( 'alt+F10' );
await this.expectLabelToHaveFocus( 'Select Group' );
await this.page.keyboard.press( 'ArrowRight' );
await this.expectLabelToHaveFocus( currentBlockTitle );
Expand Down

0 comments on commit ac289cd

Please sign in to comment.