diff --git a/packages/e2e-test-utils-playwright/src/editor/switch-editor-tool.ts b/packages/e2e-test-utils-playwright/src/editor/switch-editor-tool.ts index ed9406f72cec2..67894abe0dcf7 100644 --- a/packages/e2e-test-utils-playwright/src/editor/switch-editor-tool.ts +++ b/packages/e2e-test-utils-playwright/src/editor/switch-editor-tool.ts @@ -4,7 +4,7 @@ import type { Editor } from './index'; /** - * Clicks a block toolbar button. + * Switch the editor tool being used. * * @param this * @param label The text string of the button label. diff --git a/test/e2e/specs/editor/various/write-design-mode.spec.js b/test/e2e/specs/editor/various/write-design-mode.spec.js index e6f9fb03b17d1..55dbde954563d 100644 --- a/test/e2e/specs/editor/various/write-design-mode.spec.js +++ b/test/e2e/specs/editor/various/write-design-mode.spec.js @@ -96,7 +96,7 @@ test.describe( 'Write/Design mode', () => { await paragraph.click(); await page.keyboard.type( ' something' ); expect( await getSelectedBlock() ).toEqual( paragraphClientId ); - expect( await paragraph.innerHTML() ).toEqual( 'Something something' ); + await expect( paragraph ).toHaveText( 'Something something' ); // Check that the inspector still shows the group block with the content panel. await editor.openDocumentSettingsSidebar();