Block bindings: Don't use useEffect
in the block bindings editor hook
#98216
Annotations
11 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/editor/various/navigable-toolbar.spec.js#L325
1) [chromium] › editor/various/navigable-toolbar.spec.js:54:3 › Block Toolbar › Contextual Toolbar › can navigate to the block toolbar and back to block using the keyboard
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Block: Paragraph"
Received: "Empty block; start writing or type forward slash to choose a block"
323 | } );
324 |
> 325 | expect( ariaLabel ).toBe( label );
| ^
326 | }
327 |
328 | async testScrollable( scrollableElement, elementToTest ) {
at BlockToolbarUtils.expectLabelToHaveFocus (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:325:23)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:83:4
|
Run the tests:
test/e2e/specs/editor/various/navigable-toolbar.spec.js#L325
1) [chromium] › editor/various/navigable-toolbar.spec.js:54:3 › Block Toolbar › Contextual Toolbar › can navigate to the block toolbar and back to block using the keyboard
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Block: Paragraph"
Received: "Empty block; start writing or type forward slash to choose a block"
323 | } );
324 |
> 325 | expect( ariaLabel ).toBe( label );
| ^
326 | }
327 |
328 | async testScrollable( scrollableElement, elementToTest ) {
at BlockToolbarUtils.expectLabelToHaveFocus (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:325:23)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:83:4
|
Run the tests:
test/e2e/specs/editor/various/navigable-toolbar.spec.js#L325
1) [chromium] › editor/various/navigable-toolbar.spec.js:54:3 › Block Toolbar › Contextual Toolbar › can navigate to the block toolbar and back to block using the keyboard
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Block: Paragraph"
Received: "Empty block; start writing or type forward slash to choose a block"
323 | } );
324 |
> 325 | expect( ariaLabel ).toBe( label );
| ^
326 | }
327 |
328 | async testScrollable( scrollableElement, elementToTest ) {
at BlockToolbarUtils.expectLabelToHaveFocus (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:325:23)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:83:4
|
Run the tests:
test/e2e/specs/editor/various/navigable-toolbar.spec.js#L325
2) [chromium] › editor/various/navigable-toolbar.spec.js:175:2 › Block Toolbar › Tab order of the block toolbar aligns with visual order
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Block: Paragraph"
Received: "Empty block; start writing or type forward slash to choose a block"
323 | } );
324 |
> 325 | expect( ariaLabel ).toBe( label );
| ^
326 | }
327 |
328 | async testScrollable( scrollableElement, elementToTest ) {
at BlockToolbarUtils.expectLabelToHaveFocus (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:325:23)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:195:3
|
Run the tests:
test/e2e/specs/editor/various/navigable-toolbar.spec.js#L325
2) [chromium] › editor/various/navigable-toolbar.spec.js:175:2 › Block Toolbar › Tab order of the block toolbar aligns with visual order
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Block: Paragraph"
Received: "Empty block; start writing or type forward slash to choose a block"
323 | } );
324 |
> 325 | expect( ariaLabel ).toBe( label );
| ^
326 | }
327 |
328 | async testScrollable( scrollableElement, elementToTest ) {
at BlockToolbarUtils.expectLabelToHaveFocus (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:325:23)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:195:3
|
Run the tests:
test/e2e/specs/editor/various/navigable-toolbar.spec.js#L325
2) [chromium] › editor/various/navigable-toolbar.spec.js:175:2 › Block Toolbar › Tab order of the block toolbar aligns with visual order
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "Block: Paragraph"
Received: "Empty block; start writing or type forward slash to choose a block"
323 | } );
324 |
> 325 | expect( ariaLabel ).toBe( label );
| ^
326 | }
327 |
328 | async testScrollable( scrollableElement, elementToTest ) {
at BlockToolbarUtils.expectLabelToHaveFocus (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:325:23)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/navigable-toolbar.spec.js:195:3
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L73
3) [chromium] › editor/various/pattern-overrides.spec.js:29:2 › Pattern Overrides › Create a pattern with overrides › Create a synced pattern and assign blocks to allow overrides
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Paragraph' }).filter({ hasText: 'This paragraph can be edited' })
============================================================
71 | .getByRole( 'document', { name: 'Block: Paragraph' } )
72 | .filter( { hasText: 'This paragraph can be edited' } )
> 73 | .focus();
| ^
74 | await editor.openDocumentSettingsSidebar();
75 | const editorSettings = page.getByRole( 'region', {
76 | name: 'Editor settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:73:6
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:37:3
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L73
3) [chromium] › editor/various/pattern-overrides.spec.js:29:2 › Pattern Overrides › Create a pattern with overrides › Create a synced pattern and assign blocks to allow overrides
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Paragraph' }).filter({ hasText: 'This paragraph can be edited' })
============================================================
71 | .getByRole( 'document', { name: 'Block: Paragraph' } )
72 | .filter( { hasText: 'This paragraph can be edited' } )
> 73 | .focus();
| ^
74 | await editor.openDocumentSettingsSidebar();
75 | const editorSettings = page.getByRole( 'region', {
76 | name: 'Editor settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:73:6
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:37:3
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L73
3) [chromium] › editor/various/pattern-overrides.spec.js:29:2 › Pattern Overrides › Create a pattern with overrides › Create a synced pattern and assign blocks to allow overrides
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Paragraph' }).filter({ hasText: 'This paragraph can be edited' })
============================================================
71 | .getByRole( 'document', { name: 'Block: Paragraph' } )
72 | .filter( { hasText: 'This paragraph can be edited' } )
> 73 | .focus();
| ^
74 | await editor.openDocumentSettingsSidebar();
75 | const editorSettings = page.getByRole( 'region', {
76 | name: 'Editor settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:73:6
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:37:3
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L574
4) [chromium] › editor/various/pattern-overrides.spec.js:502:2 › Pattern Overrides › resets overrides after clicking the reset button
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Pattern' }).getByRole('document', { name: 'Block: Heading' })
Expected string: "Heading"
Received string: "Heading (edited)"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Pattern' }).getByRole('document', { name: 'Block: Heading' })
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
- locator resolved to <h2 role="document" data-title="Heading" aria-multil…>Heading (edited)</h2>
- unexpected value "Heading (edited)"
572 | await editor.showBlockToolbar();
573 | await resetButton.click();
> 574 | await expect( headingBlock ).toHaveText( 'Heading' );
| ^
575 |
576 | // Undo should work
577 | await page
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:574:32
|
Archive debug artifacts (screenshots, traces)
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run the tests
11 failed
[chromium] › editor/various/navigable-toolbar.spec.js:54:3 › Block Toolbar › Contextual Toolbar › can navigate to the block toolbar and back to block using the keyboard
[chromium] › editor/various/navigable-toolbar.spec.js:175:2 › Block Toolbar › Tab order of the block toolbar aligns with visual order
[chromium] › editor/various/pattern-overrides.spec.js:29:2 › Pattern Overrides › Create a pattern with overrides
[chromium] › editor/various/pattern-overrides.spec.js:502:2 › Pattern Overrides › resets overrides after clicking the reset button
[chromium] › editor/various/pattern-overrides.spec.js:594:2 › Pattern Overrides › overridden empty images should not have upload button
[chromium] › editor/various/splitting-merging.spec.js:423:3 › splitting and merging blocks (@Firefox, @WebKit) › test restore selection when merge produces more than one block › on forward delete
[chromium] › editor/various/splitting-merging.spec.js:443:3 › splitting and merging blocks (@Firefox, @WebKit) › test restore selection when merge produces more than one block › on backspace
[chromium] › editor/various/toolbar-roving-tabindex.spec.js:23:2 › Toolbar roving tabindex › ensures base block toolbars use roving tabindex
[chromium] › editor/various/undo.spec.js:17:2 › undo › should undo typing after a pause ────────
[chromium] › editor/various/undo.spec.js:87:2 › undo › should undo typing after non input change
[chromium] › editor/various/undo.spec.js:187:2 › undo › Should undo/redo to expected level intervals
1 skipped
164 passed (11.3m)
|
Loading