Block bindings: Don't use useEffect
in the block bindings editor hook
#98216
Annotations
11 errors, 1 warning, and 1 notice
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
|
Run the tests:
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L411
1) [chromium] › editor/various/copy-cut-paste.spec.js:383:2 › Copy/cut/paste › should cut partial selection and merge like a normal `delete` - not forward
Error: Snapshot comparison failed:
<!-- wp:heading -->
<h2 class="wp-block-heading">ading</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Paragra</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">Hephading</h2>
<!-- /wp:heading -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-9fc9d-n-and-merge-like-a-normal-delete---not-forward--chromium/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-actual.txt
409 | await page.keyboard.press( 'ArrowUp' );
410 | await pageUtils.pressKeys( 'primary+v' );
> 411 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
412 | } );
413 |
414 | test( 'should paste plain text in plain text context when cross block selection is copied ', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:411:49
|
Run the tests:
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L411
1) [chromium] › editor/various/copy-cut-paste.spec.js:383:2 › Copy/cut/paste › should cut partial selection and merge like a normal `delete` - not forward
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:heading -->
<h2 class="wp-block-heading">ading</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Paragra</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">Hephading</h2>
<!-- /wp:heading -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-9fc9d-n-and-merge-like-a-normal-delete---not-forward--chromium-retry1/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-actual.txt
409 | await page.keyboard.press( 'ArrowUp' );
410 | await pageUtils.pressKeys( 'primary+v' );
> 411 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
412 | } );
413 |
414 | test( 'should paste plain text in plain text context when cross block selection is copied ', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:411:49
|
Run the tests:
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L411
1) [chromium] › editor/various/copy-cut-paste.spec.js:383:2 › Copy/cut/paste › should cut partial selection and merge like a normal `delete` - not forward
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:heading -->
<h2 class="wp-block-heading">ading</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>Paragra</p>
<!-- /wp:paragraph -->
<!-- wp:heading -->
<h2 class="wp-block-heading">Hephading</h2>
<!-- /wp:heading -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-9fc9d-n-and-merge-like-a-normal-delete---not-forward--chromium-retry2/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-actual.txt
409 | await page.keyboard.press( 'ArrowUp' );
410 | await pageUtils.pressKeys( 'primary+v' );
> 411 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
412 | } );
413 |
414 | test( 'should paste plain text in plain text context when cross block selection is copied ', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:411:49
|
Run the tests:
test/e2e/specs/editor/various/draggable-blocks.spec.js#L47
2) [chromium] › editor/various/draggable-blocks.spec.js:26:2 › Draggable block › can drag and drop to the top of a vertical block list
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=2')
============================================================
45 | await editor.canvas
46 | .locator( 'role=document[name="Block: Paragraph"i] >> text=2' )
> 47 | .focus();
| ^
48 | await editor.showBlockToolbar();
49 |
50 | const dragHandle = page.locator(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:47:5
|
Run the tests:
test/e2e/specs/editor/various/draggable-blocks.spec.js#L47
2) [chromium] › editor/various/draggable-blocks.spec.js:26:2 › Draggable block › can drag and drop to the top of a vertical block list
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=2')
============================================================
45 | await editor.canvas
46 | .locator( 'role=document[name="Block: Paragraph"i] >> text=2' )
> 47 | .focus();
| ^
48 | await editor.showBlockToolbar();
49 |
50 | const dragHandle = page.locator(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:47:5
|
Run the tests:
test/e2e/specs/editor/various/draggable-blocks.spec.js#L47
2) [chromium] › editor/various/draggable-blocks.spec.js:26:2 › Draggable block › can drag and drop to the top of a vertical block list
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=2')
============================================================
45 | await editor.canvas
46 | .locator( 'role=document[name="Block: Paragraph"i] >> text=2' )
> 47 | .focus();
| ^
48 | await editor.showBlockToolbar();
49 |
50 | const dragHandle = page.locator(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:47:5
|
Run the tests:
test/e2e/specs/editor/various/draggable-blocks.spec.js#L119
3) [chromium] › editor/various/draggable-blocks.spec.js:98:2 › Draggable block › can drag and drop to the bottom of a vertical block list
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=1')
============================================================
117 | await editor.canvas
118 | .locator( 'role=document[name="Block: Paragraph"i] >> text=1' )
> 119 | .focus();
| ^
120 | await editor.showBlockToolbar();
121 |
122 | const dragHandle = page.locator(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:119:5
|
Run the tests:
test/e2e/specs/editor/various/draggable-blocks.spec.js#L119
3) [chromium] › editor/various/draggable-blocks.spec.js:98:2 › Draggable block › can drag and drop to the bottom of a vertical block list
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=1')
============================================================
117 | await editor.canvas
118 | .locator( 'role=document[name="Block: Paragraph"i] >> text=1' )
> 119 | .focus();
| ^
120 | await editor.showBlockToolbar();
121 |
122 | const dragHandle = page.locator(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:119:5
|
Run the tests:
test/e2e/specs/editor/various/draggable-blocks.spec.js#L119
3) [chromium] › editor/various/draggable-blocks.spec.js:98:2 › Draggable block › can drag and drop to the bottom of a vertical block list
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.focus: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]').locator('text=1')
============================================================
117 | await editor.canvas
118 | .locator( 'role=document[name="Block: Paragraph"i] >> text=1' )
> 119 | .focus();
| ^
120 | await editor.showBlockToolbar();
121 |
122 | const dragHandle = page.locator(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/draggable-blocks.spec.js:119:5
|
Run the tests:
test/e2e/specs/editor/various/editor-modes.spec.js#L79
4) [chromium] › editor/various/editor-modes.spec.js:56:2 › Editing modes (visual/HTML) › should update HTML in HTML mode when sidebar is used
Error: locator.check: Clicking the checkbox did not change its state
=========================== logs ===========================
waiting for getByRole('checkbox', { name: 'Drop cap' })
locator resolved to <input type="checkbox" id="inspector-toggle-control-0" …/>
attempting click action
waiting for element to be visible, enabled and stable
element is visible, enabled and stable
scrolling into view if needed
done scrolling
performing click action
click action done
waiting for scheduled navigations to finish
navigations have finished
============================================================
77 | .getByRole( 'menuitemcheckbox', { name: 'Show Drop cap' } )
78 | .click();
> 79 | await page.getByRole( 'checkbox', { name: 'Drop cap' } ).check();
| ^
80 |
81 | // Make sure the HTML content updated.
82 | await expect( paragraphHTML ).toHaveValue(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/editor-modes.spec.js:79:60
|
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
13 failed
[chromium] › editor/various/copy-cut-paste.spec.js:383:2 › Copy/cut/paste › should cut partial selection and merge like a normal `delete` - not forward
[chromium] › editor/various/draggable-blocks.spec.js:26:2 › Draggable block › can drag and drop to the top of a vertical block list
[chromium] › editor/various/draggable-blocks.spec.js:98:2 › Draggable block › can drag and drop to the bottom of a vertical block list
[chromium] › editor/various/editor-modes.spec.js:56:2 › Editing modes (visual/HTML) › should update HTML in HTML mode when sidebar is used
[chromium] › editor/various/footnotes.spec.js:29:2 › Footnotes › can be inserted ───────────────
[chromium] › editor/various/inserting-blocks.spec.js:465:2 › Inserting blocks (@Firefox, @WebKit) › inserts a block should show a blue line indicator
[chromium] › editor/various/keyboard-navigable-blocks.spec.js:20:2 › Order of block keyboard navigation › permits tabbing through paragraph blocks in the expected order
[chromium] › editor/various/multi-block-selection.spec.js:244:2 › Multi-block selection › should select with shift + click
[chromium] › editor/various/multi-block-selection.spec.js:733:2 › Multi-block selection › should clear selection when clicking next to blocks
[chromium] › editor/various/multi-block-selection.spec.js:1078:2 › Multi-block selection › should forward delete across blocks
[chromium] › editor/various/multi-block-selection.spec.js:1116:2 › Multi-block selection › should write over selection
[chromium] › editor/various/multi-block-selection.spec.js:1141:2 › Multi-block selection › should handle Enter across blocks
[chromium] › editor/various/multi-block-selection.spec.js:1216:2 › Multi-block selection › should partially select with shift + click (@WebKit)
138 passed (12.4m)
|
Loading