Skip to content

Commit

Permalink
Check contenteditable attribute in test
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed May 28, 2024
1 parent 3ce99d0 commit 889e0f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/specs/editor/various/block-bindings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,10 @@ test.describe( 'Block bindings', () => {
await expect( paragraphBlock ).toHaveText(
'Value of the text_custom_field'
);
await expect( paragraphBlock ).toBeEditable();
await expect( paragraphBlock ).toHaveAttribute(
'contenteditable',
'true'
);
await paragraphBlock.fill( 'new value' );
// Check that the paragraph content attribute didn't change.
const [ paragraphBlockObject ] = await editor.getBlocks();
Expand Down

0 comments on commit 889e0f4

Please sign in to comment.