Skip to content

Commit

Permalink
Changes per review
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 2, 2024
1 parent 3265fdf commit 30071fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
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.
*/
export async function switchEditorTool( this: Editor, label: string ) {
export async function switchEditorTool( this: Editor, label: 'string' ) {
const toolsToolbar = this.page.getByRole( 'toolbar', {
name: 'Document tools',
} );
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/various/write-design-mode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 30071fb

Please sign in to comment.