From ac289cda5c0147253f9a6038ebfd0e0fbe029412 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Tue, 3 Oct 2023 15:58:02 -0500 Subject: [PATCH] Update roving toolbar test to use alt+f10 and escape --- .../specs/editor/various/toolbar-roving-tabindex.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js b/test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js index e706dfc3607dc3..a015bc426ed0e9 100644 --- a/test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js +++ b/test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js @@ -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' ); } ); @@ -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' ); } @@ -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 );