Extensibility: Make Block Bindings work with editor.BlockEdit
hook
#120354
Annotations
10 errors and 1 notice
Run the tests:
test/e2e/specs/editor/plugins/allowed-blocks.spec.js#L37
1) [chromium] › editor/plugins/allowed-blocks.spec.js:19:2 › Allowed Blocks Filter › should restrict the allowed blocks in the inserter
Error: expect.toBeVisible: Error: strict mode violation: getByRole('option', { name: 'Paragraph' }) resolved to 2 elements:
1) <button id=":r1b:" tabindex="0" type="button" role="option" data-active-item="true" class="components-button block-editor-block-types-list__item editor-block-list-item-paragraph is-next-40px-default-size">…</button> aka getByRole('option', { name: 'Paragraph', exact: true })
2) <button id=":r1d:" type="button" role="option" tabindex="-1" class="components-button block-editor-block-types-list__item editor-block-list-item-paragraph/date is-next-40px-default-size">…</button> aka getByRole('option', { name: '(WD4D) Date-enabled Paragraph' })
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('option', { name: 'Paragraph' })
35 | await expect(
36 | page.getByRole( 'option', { name: 'Paragraph' } )
> 37 | ).toBeVisible();
| ^
38 |
39 | // The gallery block is not available.
40 | await searchbox.click( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/allowed-blocks.spec.js:37:5
|
Run the tests:
test/e2e/specs/editor/plugins/allowed-blocks.spec.js#L37
1) [chromium] › editor/plugins/allowed-blocks.spec.js:19:2 › Allowed Blocks Filter › should restrict the allowed blocks in the inserter
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect.toBeVisible: Error: strict mode violation: getByRole('option', { name: 'Paragraph' }) resolved to 2 elements:
1) <button id=":r1b:" tabindex="0" type="button" role="option" data-active-item="true" class="components-button block-editor-block-types-list__item editor-block-list-item-paragraph is-next-40px-default-size">…</button> aka getByRole('option', { name: 'Paragraph', exact: true })
2) <button id=":r1d:" type="button" role="option" tabindex="-1" class="components-button block-editor-block-types-list__item editor-block-list-item-paragraph/date is-next-40px-default-size">…</button> aka getByRole('option', { name: '(WD4D) Date-enabled Paragraph' })
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('option', { name: 'Paragraph' })
35 | await expect(
36 | page.getByRole( 'option', { name: 'Paragraph' } )
> 37 | ).toBeVisible();
| ^
38 |
39 | // The gallery block is not available.
40 | await searchbox.click( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/allowed-blocks.spec.js:37:5
|
Run the tests:
test/e2e/specs/editor/plugins/allowed-blocks.spec.js#L37
1) [chromium] › editor/plugins/allowed-blocks.spec.js:19:2 › Allowed Blocks Filter › should restrict the allowed blocks in the inserter
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect.toBeVisible: Error: strict mode violation: getByRole('option', { name: 'Paragraph' }) resolved to 2 elements:
1) <button id=":r1b:" tabindex="0" type="button" role="option" data-active-item="true" class="components-button block-editor-block-types-list__item editor-block-list-item-paragraph is-next-40px-default-size">…</button> aka getByRole('option', { name: 'Paragraph', exact: true })
2) <button id=":r1d:" type="button" role="option" tabindex="-1" class="components-button block-editor-block-types-list__item editor-block-list-item-paragraph/date is-next-40px-default-size">…</button> aka getByRole('option', { name: '(WD4D) Date-enabled Paragraph' })
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for getByRole('option', { name: 'Paragraph' })
35 | await expect(
36 | page.getByRole( 'option', { name: 'Paragraph' } )
> 37 | ).toBeVisible();
| ^
38 |
39 | // The gallery block is not available.
40 | await searchbox.click( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/allowed-blocks.spec.js:37:5
|
Run the tests:
test/e2e/specs/editor/plugins/block-variations.spec.js#L80
2) [chromium] › editor/plugins/block-variations.spec.js:62:2 › Block variations › Search for the Paragraph block with 2 additional variations
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('listbox', { name: 'Blocks' }).getByRole('option')
- Expected - 0
+ Received + 11
Array [
"Paragraph",
"Success Message",
"Warning Message",
+ "(WD4D) Date-enabled Paragraph",
+ "Animated Text by bPluginsDisplay text or paragraph as animation.Install block",
+ "Sticky by SenffThe Gutenberg Sticky Block will stick at the top of the page once you scroll down.Install block",
+ "Markdown Comment by Rich TaborAdd markdown inspired comments to posts that render only within the block editor.Install block",
+ "Todo List by Rich TaborAdd todo lists to posts that render only within the block editor.Install block",
+ "Safelayout Elegant Icons by SafelayoutBeautiful SVG icons. Adds an easy-to-use and powerful icon block to the WordPress block editor and classic editor.Install block",
+ "Listicles by LezWatch.TVCreate beautiful listicle blocks.Install block",
+ "Counter by omnipressteamOmnipress is a ready-made WordPress Design Blocks, similar to the Gutenberg WordPress block editor, that takes a holistic approach to changing your co …Install block",
+ "Overlapping Images by Peter SteeleShows decoratively overlapping image and text content.Install block",
+ "Sentiment Analysis With Tensorflowjs by Ujwol BastakotiGuternberg block to detect sentiment of the paragraph as you write using TensorflowjsInstall block",
+ "PDF by Andy FragenEmbed a PDF from the Media Library or elsewhere via oEmbed or as a block into an iframe tag.Install block",
]
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('listbox', { name: 'Blocks' }).getByRole('option')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
78 | .getByRole( 'listbox', { name: 'Blocks' } )
79 | .getByRole( 'option' )
> 80 | ).toHaveText( [ 'Paragraph', 'Success Message', 'Warning Message' ] );
| ^
81 | } );
82 |
83 | test( 'Insert the Success Message block variation', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/block-variations.spec.js:80:5
|
Run the tests:
test/e2e/specs/editor/plugins/block-variations.spec.js#L80
2) [chromium] › editor/plugins/block-variations.spec.js:62:2 › Block variations › Search for the Paragraph block with 2 additional variations
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('listbox', { name: 'Blocks' }).getByRole('option')
- Expected - 0
+ Received + 11
Array [
"Paragraph",
"Success Message",
"Warning Message",
+ "(WD4D) Date-enabled Paragraph",
+ "Animated Text by bPluginsDisplay text or paragraph as animation.Install block",
+ "Sticky by SenffThe Gutenberg Sticky Block will stick at the top of the page once you scroll down.Install block",
+ "Markdown Comment by Rich TaborAdd markdown inspired comments to posts that render only within the block editor.Install block",
+ "Todo List by Rich TaborAdd todo lists to posts that render only within the block editor.Install block",
+ "Safelayout Elegant Icons by SafelayoutBeautiful SVG icons. Adds an easy-to-use and powerful icon block to the WordPress block editor and classic editor.Install block",
+ "Listicles by LezWatch.TVCreate beautiful listicle blocks.Install block",
+ "Counter by omnipressteamOmnipress is a ready-made WordPress Design Blocks, similar to the Gutenberg WordPress block editor, that takes a holistic approach to changing your co …Install block",
+ "Overlapping Images by Peter SteeleShows decoratively overlapping image and text content.Install block",
+ "Sentiment Analysis With Tensorflowjs by Ujwol BastakotiGuternberg block to detect sentiment of the paragraph as you write using TensorflowjsInstall block",
+ "PDF by Andy FragenEmbed a PDF from the Media Library or elsewhere via oEmbed or as a block into an iframe tag.Install block",
]
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('listbox', { name: 'Blocks' }).getByRole('option')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 4 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
78 | .getByRole( 'listbox', { name: 'Blocks' } )
79 | .getByRole( 'option' )
> 80 | ).toHaveText( [ 'Paragraph', 'Success Message', 'Warning Message' ] );
| ^
81 | } );
82 |
83 | test( 'Insert the Success Message block variation', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/block-variations.spec.js:80:5
|
Run the tests:
test/e2e/specs/editor/plugins/block-variations.spec.js#L80
2) [chromium] › editor/plugins/block-variations.spec.js:62:2 › Block variations › Search for the Paragraph block with 2 additional variations
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('listbox', { name: 'Blocks' }).getByRole('option')
- Expected - 0
+ Received + 11
Array [
"Paragraph",
"Success Message",
"Warning Message",
+ "(WD4D) Date-enabled Paragraph",
+ "Animated Text by bPluginsDisplay text or paragraph as animation.Install block",
+ "Sticky by SenffThe Gutenberg Sticky Block will stick at the top of the page once you scroll down.Install block",
+ "Markdown Comment by Rich TaborAdd markdown inspired comments to posts that render only within the block editor.Install block",
+ "Todo List by Rich TaborAdd todo lists to posts that render only within the block editor.Install block",
+ "Safelayout Elegant Icons by SafelayoutBeautiful SVG icons. Adds an easy-to-use and powerful icon block to the WordPress block editor and classic editor.Install block",
+ "Listicles by LezWatch.TVCreate beautiful listicle blocks.Install block",
+ "Counter by omnipressteamOmnipress is a ready-made WordPress Design Blocks, similar to the Gutenberg WordPress block editor, that takes a holistic approach to changing your co …Install block",
+ "Overlapping Images by Peter SteeleShows decoratively overlapping image and text content.Install block",
+ "Sentiment Analysis With Tensorflowjs by Ujwol BastakotiGuternberg block to detect sentiment of the paragraph as you write using TensorflowjsInstall block",
+ "PDF by Andy FragenEmbed a PDF from the Media Library or elsewhere via oEmbed or as a block into an iframe tag.Install block",
]
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('listbox', { name: 'Blocks' }).getByRole('option')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
- locator resolved to 14 elements
78 | .getByRole( 'listbox', { name: 'Blocks' } )
79 | .getByRole( 'option' )
> 80 | ).toHaveText( [ 'Paragraph', 'Success Message', 'Warning Message' ] );
| ^
81 | } );
82 |
83 | test( 'Insert the Success Message block variation', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/block-variations.spec.js:80:5
|
Run the tests:
test/e2e/specs/editor/plugins/child-blocks.spec.js#L99
3) [chromium] › editor/plugins/child-blocks.spec.js:69:2 › Child Blocks › display in a parent block with allowedItems
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('region', { name: 'Block Library' }).locator('.block-editor-inserter__insertable-blocks-at-selection').getByRole('option')
- Expected - 0
+ Received + 1
Array [
"Paragraph",
+ "(WD4D) Date-enabled Paragraph",
"Child Blocks Child",
"Image",
]
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('region', { name: 'Block Library' }).locator('.block-editor-inserter__insertable-blocks-at-selection').getByRole('option')
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
97 | await blockInserter.click();
98 | await expect( blockLibrary ).toBeVisible();
> 99 | await expect( blockLibrary.getByRole( 'option' ) ).toHaveText( [
| ^
100 | 'Paragraph',
101 | 'Child Blocks Child',
102 | 'Image',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/child-blocks.spec.js:99:54
|
Run the tests:
test/e2e/specs/editor/plugins/child-blocks.spec.js#L99
3) [chromium] › editor/plugins/child-blocks.spec.js:69:2 › Child Blocks › display in a parent block with allowedItems
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('region', { name: 'Block Library' }).locator('.block-editor-inserter__insertable-blocks-at-selection').getByRole('option')
- Expected - 0
+ Received + 1
Array [
"Paragraph",
+ "(WD4D) Date-enabled Paragraph",
"Child Blocks Child",
"Image",
]
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('region', { name: 'Block Library' }).locator('.block-editor-inserter__insertable-blocks-at-selection').getByRole('option')
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
97 | await blockInserter.click();
98 | await expect( blockLibrary ).toBeVisible();
> 99 | await expect( blockLibrary.getByRole( 'option' ) ).toHaveText( [
| ^
100 | 'Paragraph',
101 | 'Child Blocks Child',
102 | 'Image',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/child-blocks.spec.js:99:54
|
Run the tests:
test/e2e/specs/editor/plugins/child-blocks.spec.js#L99
3) [chromium] › editor/plugins/child-blocks.spec.js:69:2 › Child Blocks › display in a parent block with allowedItems
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('region', { name: 'Block Library' }).locator('.block-editor-inserter__insertable-blocks-at-selection').getByRole('option')
- Expected - 0
+ Received + 1
Array [
"Paragraph",
+ "(WD4D) Date-enabled Paragraph",
"Child Blocks Child",
"Image",
]
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('region', { name: 'Block Library' }).locator('.block-editor-inserter__insertable-blocks-at-selection').getByRole('option')
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
97 | await blockInserter.click();
98 | await expect( blockLibrary ).toBeVisible();
> 99 | await expect( blockLibrary.getByRole( 'option' ) ).toHaveText( [
| ^
100 | 'Paragraph',
101 | 'Child Blocks Child',
102 | 'Image',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/child-blocks.spec.js:99:54
|
Run the tests:
test/e2e/specs/editor/plugins/inner-blocks-allowed-blocks.spec.js#L106
4) [chromium] › editor/plugins/inner-blocks-allowed-blocks.spec.js:64:2 › Allowed Blocks Setting on InnerBlocks › limits the blocks if the allowed blocks setting was set
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: getByRole('region', { name: 'Block Library' }).locator('.block-editor-inserter__insertable-blocks-at-selection').getByRole('option')
- Expected - 0
+ Received + 1
Array [
"Paragraph",
+ "(WD4D) Date-enabled Paragraph",
"Heading",
"Image",
]
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for getByRole('region', { name: 'Block Library' }).locator('.block-editor-inserter__insertable-blocks-at-selection').getByRole('option')
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
- locator resolved to 4 elements
104 | await blockInserter.click();
105 | await expect( blockLibrary ).toBeVisible();
> 106 | await expect( blockLibrary.getByRole( 'option' ) ).toHaveText( [
| ^
107 | 'Paragraph',
108 | 'Heading',
109 | 'Image',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/inner-blocks-allowed-blocks.spec.js:106:54
|
Run the tests
4 failed
[chromium] › editor/plugins/allowed-blocks.spec.js:19:2 › Allowed Blocks Filter › should restrict the allowed blocks in the inserter
[chromium] › editor/plugins/block-variations.spec.js:62:2 › Block variations › Search for the Paragraph block with 2 additional variations
[chromium] › editor/plugins/child-blocks.spec.js:69:2 › Child Blocks › display in a parent block with allowedItems
[chromium] › editor/plugins/inner-blocks-allowed-blocks.spec.js:64:2 › Allowed Blocks Setting on InnerBlocks › limits the blocks if the allowed blocks setting was set
1 skipped
190 passed (10.4m)
|
Loading