Skip to content

Commit

Permalink
Update method for changing the content in 'editor-modes' e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jun 28, 2024
1 parent 82598f9 commit afdfc20
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions test/e2e/specs/editor/various/editor-modes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,9 @@ test.describe( 'Editing modes (visual/HTML)', () => {
// Open the code editor.
await pageUtils.pressKeys( 'secondary+M' );

const textbox = page.getByRole( 'textbox', {
name: 'Type text or HTML',
} );

// Change content by typing.
await textbox.fill( '' );
await textbox.focus();

await page.keyboard.type( `<!-- wp:paragraph -->
// Change the content.
await page.getByRole( 'textbox', { name: 'Type text or HTML' } )
.fill( `<!-- wp:paragraph -->
<p>abc</p>
<!-- /wp:paragraph -->` );

Expand Down

0 comments on commit afdfc20

Please sign in to comment.