diff --git a/test/e2e/specs/editor/various/block-bindings/post-meta.spec.js b/test/e2e/specs/editor/various/block-bindings/post-meta.spec.js index d82def6feb66bf..d64e813c21db1d 100644 --- a/test/e2e/specs/editor/various/block-bindings/post-meta.spec.js +++ b/test/e2e/specs/editor/various/block-bindings/post-meta.spec.js @@ -144,29 +144,25 @@ test.describe( 'Post Meta source', () => { editor, page, } ) => { - /** - * Create connection manually until this issue is solved: - * https://github.com/WordPress/gutenberg/pull/65604 - * - * Once solved, block with the binding can be directly inserted. - */ await editor.insertBlock( { name: 'core/paragraph', + attributes: { + content: 'fallback content', + metadata: { + bindings: { + content: { + source: 'core/post-meta', + args: { + key: 'movie_field', + }, + }, + }, + }, + }, } ); - await page.getByLabel( 'Attributes options' ).click(); - await page - .getByRole( 'menuitemcheckbox', { - name: 'Show content', - } ) - .click(); const contentBinding = page.getByRole( 'button', { name: 'content', } ); - await contentBinding.click(); - await page - .getByRole( 'menuitemradio' ) - .filter( { hasText: 'Movie field label' } ) - .click(); await expect( contentBinding ).toContainText( 'Movie field label' ); @@ -175,29 +171,25 @@ test.describe( 'Post Meta source', () => { editor, page, } ) => { - /** - * Create connection manually until this issue is solved: - * https://github.com/WordPress/gutenberg/pull/65604 - * - * Once solved, block with the binding can be directly inserted. - */ await editor.insertBlock( { name: 'core/paragraph', + attributes: { + content: 'fallback content', + metadata: { + bindings: { + content: { + source: 'core/post-meta', + args: { + key: 'field_without_label_or_default', + }, + }, + }, + }, + }, } ); - await page.getByLabel( 'Attributes options' ).click(); - await page - .getByRole( 'menuitemcheckbox', { - name: 'Show content', - } ) - .click(); const contentBinding = page.getByRole( 'button', { name: 'content', } ); - await contentBinding.click(); - await page - .getByRole( 'menuitemradio' ) - .filter( { hasText: 'field_without_label_or_default' } ) - .click(); await expect( contentBinding ).toContainText( 'field_without_label_or_default' );