Skip to content
Prev Previous commit
Next Next commit
Fix demo content setup in writing flow
  • Loading branch information
Mamaduka committed Aug 7, 2025
commit c9f3f2b0bcb410afde53e3310887a0e162356645
14 changes: 9 additions & 5 deletions test/e2e/specs/editor/various/writing-flow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1146,11 +1146,15 @@ class WritingFlowUtils {
}

async addDemoContent() {
await this.page.keyboard.press( 'Enter' );
await this.page.keyboard.type( 'First paragraph' );
await this.page.keyboard.press( 'Enter' );
await this.page.keyboard.type( '/columns' );
await this.page.keyboard.press( 'Enter' );
await this.editor.insertBlock( {
name: 'core/paragraph',
attributes: {
content: 'First paragraph',
},
} );
await this.editor.insertBlock( {
name: 'core/columns',
} );
await this.editor.canvas
.locator( 'role=button[name="Two columns; equal split"i]' )
.click();
Expand Down
Loading