From 1fedc5ff05c0174ccd6d8fc4855ba257fdeb97cb Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Thu, 15 Oct 2020 14:48:49 +1100 Subject: [PATCH] Fix tests and snapshots. --- .../block-switcher/test/__snapshots__/index.js.snap | 2 +- .../editor/various/keyboard-navigable-blocks.test.js | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/block-switcher/test/__snapshots__/index.js.snap b/packages/block-editor/src/components/block-switcher/test/__snapshots__/index.js.snap index 1e581dea70b8a..15dfe116870c8 100644 --- a/packages/block-editor/src/components/block-switcher/test/__snapshots__/index.js.snap +++ b/packages/block-editor/src/components/block-switcher/test/__snapshots__/index.js.snap @@ -20,7 +20,7 @@ exports[`BlockSwitcher should render disabled block switcher with multi block of showColors={true} /> } - title="Block icon" + title="Heading" /> `; 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 730af28bdb10a..4085a03767acb 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,7 +43,9 @@ const tabThroughParagraphBlock = async ( paragraphText ) => { const tabThroughBlockToolbar = async () => { await page.keyboard.press( 'Tab' ); - await expect( await getActiveLabel() ).toBe( 'Change block type or style' ); + await expect( await getActiveLabel() ).toBe( + 'Change block type or style ( Paragraph )' + ); await page.keyboard.press( 'ArrowRight' ); await expect( await getActiveLabel() ).toBe( 'Move up' ); @@ -64,13 +66,15 @@ const tabThroughBlockToolbar = async () => { await expect( await getActiveLabel() ).toBe( 'Link' ); await page.keyboard.press( 'ArrowRight' ); - await expect( await getActiveLabel() ).toBe( 'More rich text controls' ); + await expect( await getActiveLabel() ).toBe( 'More formatting' ); await page.keyboard.press( 'ArrowRight' ); await expect( await getActiveLabel() ).toBe( 'More options' ); await page.keyboard.press( 'ArrowRight' ); - await expect( await getActiveLabel() ).toBe( 'Change block type or style' ); + await expect( await getActiveLabel() ).toBe( + 'Change block type or style ( Paragraph )' + ); }; describe( 'Order of block keyboard navigation', () => {