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/plugins/post-type-locking.spec.js#L78
1) [chromium] › editor/plugins/post-type-locking.spec.js:62:3 › Post-type locking › template_lock all › should not error when deleting the contents of a paragraph
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' }).first()
Expected string: ""
Received string: "Paragrap"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' }).first()
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
76 | await pageUtils.pressKeys( 'Backspace', textToType.length + 1 );
77 |
> 78 | await expect( firstParagraph ).toHaveText( '' );
| ^
79 | } );
80 |
81 | test( 'should insert line breaks when using enter and shift-enter', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-locking.spec.js:78:35
|
Run the tests:
test/e2e/specs/editor/plugins/post-type-locking.spec.js#L78
1) [chromium] › editor/plugins/post-type-locking.spec.js:62:3 › Post-type locking › template_lock all › should not error when deleting the contents of a paragraph
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' }).first()
Expected string: ""
Received string: "Paragrap"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' }).first()
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
76 | await pageUtils.pressKeys( 'Backspace', textToType.length + 1 );
77 |
> 78 | await expect( firstParagraph ).toHaveText( '' );
| ^
79 | } );
80 |
81 | test( 'should insert line breaks when using enter and shift-enter', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-locking.spec.js:78:35
|
Run the tests:
test/e2e/specs/editor/plugins/post-type-locking.spec.js#L78
1) [chromium] › editor/plugins/post-type-locking.spec.js:62:3 › Post-type locking › template_lock all › should not error when deleting the contents of a paragraph
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' }).first()
Expected string: ""
Received string: "Paragrap"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' }).first()
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
- locator resolved to <p role="document" data-empty="true" aria-multiline…>Paragrap</p>
- unexpected value "Paragrap"
76 | await pageUtils.pressKeys( 'Backspace', textToType.length + 1 );
77 |
> 78 | await expect( firstParagraph ).toHaveText( '' );
| ^
79 | } );
80 |
81 | test( 'should insert line breaks when using enter and shift-enter', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/post-type-locking.spec.js:78:35
|
Run the tests:
test/e2e/specs/editor/various/autosave.spec.js#L293
2) [chromium] › editor/various/autosave.spec.js:280:2 › Autosave › shouldn't conflict with server-side autosave
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Paragraph' })
============================================================
291 | name: 'Block: Paragraph',
292 | } );
> 293 | await paragraph.click();
| ^
294 | await page.keyboard.type( ' after save' );
295 |
296 | // Trigger remote autosave.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/autosave.spec.js:293:19
|
Run the tests:
test/e2e/specs/editor/various/autosave.spec.js#L293
2) [chromium] › editor/various/autosave.spec.js:280:2 › Autosave › shouldn't conflict with server-side autosave
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Paragraph' })
============================================================
291 | name: 'Block: Paragraph',
292 | } );
> 293 | await paragraph.click();
| ^
294 | await page.keyboard.type( ' after save' );
295 |
296 | // Trigger remote autosave.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/autosave.spec.js:293:19
|
Run the tests:
test/e2e/specs/editor/various/autosave.spec.js#L293
2) [chromium] › editor/various/autosave.spec.js:280:2 › Autosave › shouldn't conflict with server-side autosave
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Paragraph' })
============================================================
291 | name: 'Block: Paragraph',
292 | } );
> 293 | await paragraph.click();
| ^
294 | await page.keyboard.type( ' after save' );
295 |
296 | // Trigger remote autosave.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/autosave.spec.js:293:19
|
Run the tests:
test/e2e/specs/editor/various/block-deletion.spec.js#L299
3) [chromium] › editor/various/block-deletion.spec.js:243:2 › Block deletion › deleting the last two selected blocks via backspace
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' })
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' })
297 | name: 'Empty block',
298 | } )
> 299 | ).toBeFocused();
| ^
300 | } );
301 |
302 | test( 'deleting all blocks', async ( { editor, page } ) => {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-deletion.spec.js:299:5
|
Run the tests:
test/e2e/specs/editor/various/block-deletion.spec.js#L299
3) [chromium] › editor/various/block-deletion.spec.js:243:2 › Block deletion › deleting the last two selected blocks via backspace
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' })
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' })
297 | name: 'Empty block',
298 | } )
> 299 | ).toBeFocused();
| ^
300 | } );
301 |
302 | test( 'deleting all blocks', async ( { editor, page } ) => {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-deletion.spec.js:299:5
|
Run the tests:
test/e2e/specs/editor/various/block-deletion.spec.js#L299
3) [chromium] › editor/various/block-deletion.spec.js:243:2 › Block deletion › deleting the last two selected blocks via backspace
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' })
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Empty block' })
297 | name: 'Empty block',
298 | } )
> 299 | ).toBeFocused();
| ^
300 | } );
301 |
302 | test( 'deleting all blocks', async ( { editor, page } ) => {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-deletion.spec.js:299:5
|
Run the tests:
test/e2e/specs/editor/various/block-hierarchy-navigation.spec.js#L216
4) [chromium] › editor/various/block-hierarchy-navigation.spec.js:190:2 › Navigating the block hierarchy › should select the wrapper div for a group
Error: expect(received).toMatchObject(expected)
- Expected - 5
+ Received + 17
Array [
Object {
- "innerBlocks": Array [
+ "attributes": Object {
+ "layout": Object {
+ "type": "constrained",
+ },
+ "tagName": "div",
+ },
+ "innerBlocks": Array [],
+ "name": "core/group",
+ },
Object {
"attributes": Object {
- "content": "just a paragraph",
+ "content": "just a paragraph/spacer",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
Object {
- "name": "core/spacer",
+ "attributes": Object {
+ "content": "",
+ "dropCap": false,
},
- ],
- "name": "core/group",
+ "innerBlocks": Array [],
+ "name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
214 |
215 | // Verify group block contents.
> 216 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
217 | {
218 | name: 'core/group',
219 | innerBlocks: [
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/block-hierarchy-navigation.spec.js:216:41
|
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
6 failed
[chromium] › editor/plugins/post-type-locking.spec.js:62:3 › Post-type locking › template_lock all › should not error when deleting the contents of a paragraph
[chromium] › editor/various/autosave.spec.js:280:2 › Autosave › shouldn't conflict with server-side autosave
[chromium] › editor/various/block-deletion.spec.js:243:2 › Block deletion › deleting the last two selected blocks via backspace
[chromium] › editor/various/block-hierarchy-navigation.spec.js:190:2 › Navigating the block hierarchy › should select the wrapper div for a group
[chromium] › editor/various/block-moving-mode.spec.js:47:2 › Block moving mode › can move block in the nested block
[chromium] › editor/various/change-detection.spec.js:432:2 › Change detection › consecutive edits to the same attribute should mark the post as dirty after a save
1 skipped
175 passed (11.2m)
|
Loading