Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update method for changing the content in 'editor-modes' e2e test #62957

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading