Skip to content

Commit

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

0 comments on commit 290273c

Please sign in to comment.