Skip to content

Commit

Permalink
Revert "Remove unnecessary select in tests"
Browse files Browse the repository at this point in the history
This reverts commit 63ffff87ca048a218567772710dcc45affcfd2aa.
  • Loading branch information
SantosGuillamot committed Mar 1, 2024
1 parent d93e586 commit 09f67bf
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/e2e/specs/editor/various/block-bindings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,10 @@ test.describe( 'Block bindings', () => {
},
},
} );
const paragraphBlock = editor.canvas.getByRole( 'document', {
name: 'Block: Paragraph',
} );
await paragraphBlock.click();
await page.keyboard.press( 'Enter' );
const [ initialParagraph, newEmptyParagraph ] =
await editor.getBlocks();
Expand Down Expand Up @@ -1407,6 +1411,10 @@ test.describe( 'Block bindings', () => {
},
},
} );
const headingBlock = editor.canvas.getByRole( 'document', {
name: 'Block: Heading',
} );
await headingBlock.click();
await page.keyboard.press( 'Enter' );
const [ initialHeading, newEmptyParagraph ] =
await editor.getBlocks();
Expand Down Expand Up @@ -1585,13 +1593,13 @@ test.describe( 'Block bindings', () => {
},
],
} );
await editor.canvas
const buttonBlock = editor.canvas
.getByRole( 'document', {
name: 'Block: Button',
exact: true,
} )
.getByRole( 'textbox' )
.click();
.getByRole( 'textbox' );
await buttonBlock.click();
await page.keyboard.press( 'Enter' );
const [ initialButton, newEmptyButton ] = (
await editor.getBlocks()
Expand Down

0 comments on commit 09f67bf

Please sign in to comment.