From 27e548a0e4e0650c5d841cf4858e082d9e69665e Mon Sep 17 00:00:00 2001 From: jasmussen Date: Wed, 3 Jun 2020 11:49:41 +0200 Subject: [PATCH] Fix tab-order test --- .../editor/various/keyboard-navigable-blocks.test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/e2e-tests/specs/editor/various/keyboard-navigable-blocks.test.js b/packages/e2e-tests/specs/editor/various/keyboard-navigable-blocks.test.js index 3f590f4741f12..d8f4e06458bf7 100644 --- a/packages/e2e-tests/specs/editor/various/keyboard-navigable-blocks.test.js +++ b/packages/e2e-tests/specs/editor/various/keyboard-navigable-blocks.test.js @@ -43,13 +43,13 @@ const tabThroughParagraphBlock = async ( paragraphText ) => { const tabThroughBlockToolbar = async () => { await page.keyboard.press( 'Tab' ); - await expect( await getActiveLabel() ).toBe( 'Move up' ); + await expect( await getActiveLabel() ).toBe( 'Change block type or style' ); await page.keyboard.press( 'ArrowRight' ); - await expect( await getActiveLabel() ).toBe( 'Move down' ); + await expect( await getActiveLabel() ).toBe( 'Move up' ); await page.keyboard.press( 'ArrowRight' ); - await expect( await getActiveLabel() ).toBe( 'Change block type or style' ); + await expect( await getActiveLabel() ).toBe( 'Move down' ); await page.keyboard.press( 'ArrowRight' ); await expect( await getActiveLabel() ).toBe( 'Change text alignment' ); @@ -70,7 +70,7 @@ const tabThroughBlockToolbar = async () => { await expect( await getActiveLabel() ).toBe( 'More options' ); await page.keyboard.press( 'ArrowRight' ); - await expect( await getActiveLabel() ).toBe( 'Move up' ); + await expect( await getActiveLabel() ).toBe( 'Change block type or style' ); }; describe( 'Order of block keyboard navigation', () => { @@ -197,6 +197,7 @@ describe( 'Order of block keyboard navigation', () => { ); await pressKeyWithModifier( 'shift', 'Tab' ); + await page.keyboard.press( 'ArrowRight' ); await expect( await getActiveLabel() ).toBe( 'Move up' ); } ); } );