From f158e0e9f30e8eec0e1f613e3c21254ffb2130f2 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 2 Oct 2024 10:56:38 +0100 Subject: [PATCH] Changes per review --- .../e2e-test-utils-playwright/src/editor/switch-editor-tool.ts | 2 +- test/e2e/specs/editor/various/write-design-mode.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();