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/writing-flow.spec.js#L394
1) [chromium] › editor/various/writing-flow.spec.js:366:2 › Writing Flow (@Firefox, @WebKit) › should navigate native inputs vertically, not horizontally
Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected)
Locator: frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]')
Expected pattern: /is-selected/
Received string: ""
Call log:
- expect.toHaveClass with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]')
392 | await expect(
393 | editor.canvas.locator( 'role=document[name="Block: Paragraph"i]' )
> 394 | ).toHaveClass( /is-selected/ );
| ^
395 | } );
396 |
397 | test( 'should not delete surrounding space when deleting a word with Backspace', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:394:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L394
1) [chromium] › editor/various/writing-flow.spec.js:366:2 › Writing Flow (@Firefox, @WebKit) › should navigate native inputs vertically, not horizontally
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected)
Locator: frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]')
Expected pattern: /is-selected/
Received string: ""
Call log:
- expect.toHaveClass with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]')
392 | await expect(
393 | editor.canvas.locator( 'role=document[name="Block: Paragraph"i]' )
> 394 | ).toHaveClass( /is-selected/ );
| ^
395 | } );
396 |
397 | test( 'should not delete surrounding space when deleting a word with Backspace', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:394:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L394
1) [chromium] › editor/various/writing-flow.spec.js:366:2 › Writing Flow (@Firefox, @WebKit) › should navigate native inputs vertically, not horizontally
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected)
Locator: frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]')
Expected pattern: /is-selected/
Received string: ""
Call log:
- expect.toHaveClass with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').locator('role=document[name="Block: Paragraph"i]')
392 | await expect(
393 | editor.canvas.locator( 'role=document[name="Block: Paragraph"i]' )
> 394 | ).toHaveClass( /is-selected/ );
| ^
395 | } );
396 |
397 | test( 'should not delete surrounding space when deleting a word with Backspace', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:394:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L625
2) [chromium] › editor/various/writing-flow.spec.js:612:2 › Writing Flow (@Firefox, @WebKit) › should merge and then split paragraphs
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:paragraph -->
<p>abc</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
- <p>123</p>
+ <p></p>
<!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
623 |
624 | await expect.poll( editor.getEditedPostContent )
> 625 | .toBe( `<!-- wp:paragraph -->
| ^
626 | <p>abc</p>
627 | <!-- /wp:paragraph -->
628 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:625:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L625
2) [chromium] › editor/various/writing-flow.spec.js:612:2 › Writing Flow (@Firefox, @WebKit) › should merge and then split paragraphs
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:paragraph -->
<p>abc</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
- <p>123</p>
+ <p></p>
<!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
623 |
624 | await expect.poll( editor.getEditedPostContent )
> 625 | .toBe( `<!-- wp:paragraph -->
| ^
626 | <p>abc</p>
627 | <!-- /wp:paragraph -->
628 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:625:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L625
2) [chromium] › editor/various/writing-flow.spec.js:612:2 › Writing Flow (@Firefox, @WebKit) › should merge and then split paragraphs
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:paragraph -->
<p>abc</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
- <p>123</p>
+ <p></p>
<!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
623 |
624 | await expect.poll( editor.getEditedPostContent )
> 625 | .toBe( `<!-- wp:paragraph -->
| ^
626 | <p>abc</p>
627 | <!-- /wp:paragraph -->
628 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:625:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L649
3) [chromium] › editor/various/writing-flow.spec.js:634:2 › Writing Flow (@Firefox, @WebKit) › should merge and then soft line break
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:paragraph -->
- <p>1<br>2</p>
+ <p>1<br></p>
<!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
647 |
648 | await expect.poll( editor.getEditedPostContent )
> 649 | .toBe( `<!-- wp:paragraph -->
| ^
650 | <p>1<br>2</p>
651 | <!-- /wp:paragraph -->` );
652 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:649:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L649
3) [chromium] › editor/various/writing-flow.spec.js:634:2 › Writing Flow (@Firefox, @WebKit) › should merge and then soft line break
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:paragraph -->
- <p>1<br>2</p>
+ <p>1<br></p>
<!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
647 |
648 | await expect.poll( editor.getEditedPostContent )
> 649 | .toBe( `<!-- wp:paragraph -->
| ^
650 | <p>1<br>2</p>
651 | <!-- /wp:paragraph -->` );
652 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:649:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L649
3) [chromium] › editor/various/writing-flow.spec.js:634:2 › Writing Flow (@Firefox, @WebKit) › should merge and then soft line break
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:paragraph -->
- <p>1<br>2</p>
+ <p>1<br></p>
<!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
647 |
648 | await expect.poll( editor.getEditedPostContent )
> 649 | .toBe( `<!-- wp:paragraph -->
| ^
650 | <p>1<br>2</p>
651 | <!-- /wp:paragraph -->` );
652 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:649:5
|
Run the tests:
test/e2e/specs/editor/various/writing-flow.spec.js#L664
4) [chromium] › editor/various/writing-flow.spec.js:654:2 › Writing Flow (@Firefox, @WebKit) › should merge forwards
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:paragraph -->
- <p>123</p>
+ <p>12</p>
<!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
662 |
663 | await expect.poll( editor.getEditedPostContent )
> 664 | .toBe( `<!-- wp:paragraph -->
| ^
665 | <p>123</p>
666 | <!-- /wp:paragraph -->` );
667 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/writing-flow.spec.js:664:5
|
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
15 failed
[chromium] › editor/various/writing-flow.spec.js:366:2 › Writing Flow (@Firefox, @WebKit) › should navigate native inputs vertically, not horizontally
[chromium] › editor/various/writing-flow.spec.js:612:2 › Writing Flow (@Firefox, @WebKit) › should merge and then split paragraphs
[chromium] › editor/various/writing-flow.spec.js:634:2 › Writing Flow (@Firefox, @WebKit) › should merge and then soft line break
[chromium] › editor/various/writing-flow.spec.js:654:2 › Writing Flow (@Firefox, @WebKit) › should merge forwards
[chromium] › editor/various/writing-flow.spec.js:669:2 › Writing Flow (@Firefox, @WebKit) › should merge forwards properly on multiple triggers
[chromium] › editor/various/writing-flow.spec.js:802:2 › Writing Flow (@Firefox, @WebKit) › should not have a dead zone between blocks (lower)
[chromium] › editor/various/writing-flow.spec.js:843:2 › Writing Flow (@Firefox, @WebKit) › should not have a dead zone above an aligned block
[chromium] › editor/various/writing-flow.spec.js:959:2 › Writing Flow (@Firefox, @WebKit) › does not deselect the block when selecting text outside the editor canvas
[chromium] › editor/various/writing-flow.spec.js:1019:2 › Writing Flow (@Firefox, @WebKit) › should move to the start of the first line on ArrowUp (-firefox)
[chromium] › editor/various/writing-flow.spec.js:1053:2 › Writing Flow (@Firefox, @WebKit) › should vertically move the caret from corner to corner (-webkit)
[chromium] › editor/various/writing-flow.spec.js:1087:2 › Writing Flow (@Firefox, @WebKit) › should vertically move the caret when pressing Alt
[chromium] › widgets/customizing-widgets.spec.js:171:2 › Widgets Customizer › should handle the inserter outer section
[chromium] › widgets/customizing-widgets.spec.js:537:2 › Widgets Customizer › should stay in block settings after making a change in that area
[chromium] › widgets/editing-widgets.spec.js:44:2 › Widgets screen › Should insert content using the global inserter
[chromium] › widgets/editing-widgets.spec.js:148:2 › Widgets screen › Should insert content using the inline inserter
2 skipped
147 passed (14.9m)
|
Loading