Extensibility: Make Block Bindings work with editor.BlockEdit
hook
#120360
Annotations
7 errors and 1 notice
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L557
1) [webkit] › editor/various/inserting-blocks.spec.js:531:2 › Inserting blocks (@Firefox, @WebKit) › inserts a block in proper place after having clicked `Browse All` from block appender
Error: locator.click: Error: strict mode violation: getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' }) resolved to 2 elements:
1) <button id=":r5k:" 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 getByLabel('Block Library').getByRole('option', { name: 'Paragraph', exact: true })
2) <button id=":r5m:" 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 getByLabel('Block Library').getByRole('option', { name: '(WD4D) Date-enabled Paragraph' })
Call log:
- waiting for getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' })
555 | .getByRole( 'listbox', { name: 'Text' } )
556 | .getByRole( 'option', { name: 'Paragraph' } )
> 557 | .click();
| ^
558 | await editor.canvas
559 | .getByRole( 'document', { name: 'Empty block' } )
560 | .fill( 'Paragraph inside group' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:557:5
|
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L557
1) [webkit] › editor/various/inserting-blocks.spec.js:531:2 › Inserting blocks (@Firefox, @WebKit) › inserts a block in proper place after having clicked `Browse All` from block appender
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' }) resolved to 2 elements:
1) <button id=":r5k:" 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 getByLabel('Block Library').getByRole('option', { name: 'Paragraph', exact: true })
2) <button id=":r5m:" 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 getByLabel('Block Library').getByRole('option', { name: '(WD4D) Date-enabled Paragraph' })
Call log:
- waiting for getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' })
555 | .getByRole( 'listbox', { name: 'Text' } )
556 | .getByRole( 'option', { name: 'Paragraph' } )
> 557 | .click();
| ^
558 | await editor.canvas
559 | .getByRole( 'document', { name: 'Empty block' } )
560 | .fill( 'Paragraph inside group' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:557:5
|
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L557
1) [webkit] › editor/various/inserting-blocks.spec.js:531:2 › Inserting blocks (@Firefox, @WebKit) › inserts a block in proper place after having clicked `Browse All` from block appender
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' }) resolved to 2 elements:
1) <button id=":r5k:" 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 getByLabel('Block Library').getByRole('option', { name: 'Paragraph', exact: true })
2) <button id=":r5m:" 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 getByLabel('Block Library').getByRole('option', { name: '(WD4D) Date-enabled Paragraph' })
Call log:
- waiting for getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' })
555 | .getByRole( 'listbox', { name: 'Text' } )
556 | .getByRole( 'option', { name: 'Paragraph' } )
> 557 | .click();
| ^
558 | await editor.canvas
559 | .getByRole( 'document', { name: 'Empty block' } )
560 | .fill( 'Paragraph inside group' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:557:5
|
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L659
2) [webkit] › editor/various/inserting-blocks.spec.js:647:2 › Inserting blocks (@Firefox, @WebKit) › shows block preview when hovering over block in inserter
Error: locator.hover: Error: strict mode violation: getByRole('listbox', { name: 'Text' }).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:
- waiting for getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' })
657 | .getByRole( 'listbox', { name: 'Text' } )
658 | .getByRole( 'option', { name: 'Paragraph' } )
> 659 | .hover();
| ^
660 |
661 | await expect(
662 | page.locator( '.block-editor-inserter__preview' )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:659:5
|
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L659
2) [webkit] › editor/various/inserting-blocks.spec.js:647:2 › Inserting blocks (@Firefox, @WebKit) › shows block preview when hovering over block in inserter
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.hover: Error: strict mode violation: getByRole('listbox', { name: 'Text' }).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:
- waiting for getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' })
657 | .getByRole( 'listbox', { name: 'Text' } )
658 | .getByRole( 'option', { name: 'Paragraph' } )
> 659 | .hover();
| ^
660 |
661 | await expect(
662 | page.locator( '.block-editor-inserter__preview' )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:659:5
|
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L659
2) [webkit] › editor/various/inserting-blocks.spec.js:647:2 › Inserting blocks (@Firefox, @WebKit) › shows block preview when hovering over block in inserter
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.hover: Error: strict mode violation: getByRole('listbox', { name: 'Text' }).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:
- waiting for getByRole('listbox', { name: 'Text' }).getByRole('option', { name: 'Paragraph' })
657 | .getByRole( 'listbox', { name: 'Text' } )
658 | .getByRole( 'option', { name: 'Paragraph' } )
> 659 | .hover();
| ^
660 |
661 | await expect(
662 | page.locator( '.block-editor-inserter__preview' )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:659:5
|
Run the tests
Process completed with exit code 1.
|
Run the tests
2 failed
[webkit] › editor/various/inserting-blocks.spec.js:531:2 › Inserting blocks (@Firefox, @WebKit) › inserts a block in proper place after having clicked `Browse All` from block appender
[webkit] › editor/various/inserting-blocks.spec.js:647:2 › Inserting blocks (@Firefox, @WebKit) › shows block preview when hovering over block in inserter
1 skipped
195 passed (10.8m)
|
Loading