Block editor: hooks: manage save props in one place #90853
Annotations
10 errors and 1 notice
Run the tests:
test/e2e/specs/editor/blocks/navigation-colors.spec.js#L454
1) [chromium] › editor/blocks/navigation-colors.spec.js:78:2 › Navigation colors › Top level navigation links inherit the text color from the theme/group but do not apply to the submenu or overlay text
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('a').filter({ hasText: 'Custom Link' })
Expected string: "rgb(255, 255, 255)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
452 |
453 | // Top level link colors.
> 454 | await expect( customLink ).toHaveCSS( 'color', textColor );
| ^
455 | await expect( pageLink ).toHaveCSS( 'color', textColor );
456 |
457 | // Navigation background.
at ColorControl.testFrontendColors (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:454:30)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:128:22
|
Run the tests:
test/e2e/specs/editor/blocks/navigation-colors.spec.js#L454
1) [chromium] › editor/blocks/navigation-colors.spec.js:78:2 › Navigation colors › Top level navigation links inherit the text color from the theme/group but do not apply to the submenu or overlay text
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('a').filter({ hasText: 'Custom Link' })
Expected string: "rgb(255, 255, 255)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
452 |
453 | // Top level link colors.
> 454 | await expect( customLink ).toHaveCSS( 'color', textColor );
| ^
455 | await expect( pageLink ).toHaveCSS( 'color', textColor );
456 |
457 | // Navigation background.
at ColorControl.testFrontendColors (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:454:30)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:128:22
|
Run the tests:
test/e2e/specs/editor/blocks/navigation-colors.spec.js#L454
1) [chromium] › editor/blocks/navigation-colors.spec.js:78:2 › Navigation colors › Top level navigation links inherit the text color from the theme/group but do not apply to the submenu or overlay text
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('a').filter({ hasText: 'Custom Link' })
Expected string: "rgb(255, 255, 255)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('a').filter({ hasText: 'Custom Link' })
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <a href="https://wordpress.org" class="wp-block-nav…>Custom Link</a>
- unexpected value "rgb(0, 0, 0)"
452 |
453 | // Top level link colors.
> 454 | await expect( customLink ).toHaveCSS( 'color', textColor );
| ^
455 | await expect( pageLink ).toHaveCSS( 'color', textColor );
456 |
457 | // Navigation background.
at ColorControl.testFrontendColors (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:454:30)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js:128:22
|
Run the tests:
test/e2e/specs/editor/blocks/paragraph.spec.js#L129
2) [chromium] › editor/blocks/paragraph.spec.js:98:3 › Paragraph › Empty paragraph › should allow dropping blocks on an empty paragraph block
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:heading -->
- <h2 class="wp-block-heading">My Heading</h2>
+ <h2>My Heading</h2>
<!-- /wp:heading -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
127 |
128 | await expect.poll( editor.getEditedPostContent )
> 129 | .toBe( `<!-- wp:heading -->
| ^
130 | <h2 class="wp-block-heading">My Heading</h2>
131 | <!-- /wp:heading -->` );
132 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:129:6
|
Run the tests:
test/e2e/specs/editor/blocks/paragraph.spec.js#L129
2) [chromium] › editor/blocks/paragraph.spec.js:98:3 › Paragraph › Empty paragraph › should allow dropping blocks on an empty paragraph block
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:heading -->
- <h2 class="wp-block-heading">My Heading</h2>
+ <h2>My Heading</h2>
<!-- /wp:heading -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
127 |
128 | await expect.poll( editor.getEditedPostContent )
> 129 | .toBe( `<!-- wp:heading -->
| ^
130 | <h2 class="wp-block-heading">My Heading</h2>
131 | <!-- /wp:heading -->` );
132 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:129:6
|
Run the tests:
test/e2e/specs/editor/blocks/paragraph.spec.js#L129
2) [chromium] › editor/blocks/paragraph.spec.js:98:3 › Paragraph › Empty paragraph › should allow dropping blocks on an empty paragraph block
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:heading -->
- <h2 class="wp-block-heading">My Heading</h2>
+ <h2>My Heading</h2>
<!-- /wp:heading -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
127 |
128 | await expect.poll( editor.getEditedPostContent )
> 129 | .toBe( `<!-- wp:heading -->
| ^
130 | <h2 class="wp-block-heading">My Heading</h2>
131 | <!-- /wp:heading -->` );
132 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:129:6
|
Run the tests:
test/e2e/specs/editor/blocks/paragraph.spec.js#L157
3) [chromium] › editor/blocks/paragraph.spec.js:134:3 › Paragraph › Empty paragraph › should allow dropping HTML on an empty paragraph block
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:heading -->
- <h2 class="wp-block-heading">My Heading</h2>
+ <h2>My Heading</h2>
<!-- /wp:heading -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
155 |
156 | await expect.poll( editor.getEditedPostContent )
> 157 | .toBe( `<!-- wp:heading -->
| ^
158 | <h2 class="wp-block-heading">My Heading</h2>
159 | <!-- /wp:heading -->` );
160 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:157:6
|
Run the tests:
test/e2e/specs/editor/blocks/paragraph.spec.js#L157
3) [chromium] › editor/blocks/paragraph.spec.js:134:3 › Paragraph › Empty paragraph › should allow dropping HTML on an empty paragraph block
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:heading -->
- <h2 class="wp-block-heading">My Heading</h2>
+ <h2>My Heading</h2>
<!-- /wp:heading -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
155 |
156 | await expect.poll( editor.getEditedPostContent )
> 157 | .toBe( `<!-- wp:heading -->
| ^
158 | <h2 class="wp-block-heading">My Heading</h2>
159 | <!-- /wp:heading -->` );
160 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:157:6
|
Run the tests:
test/e2e/specs/editor/blocks/paragraph.spec.js#L157
3) [chromium] › editor/blocks/paragraph.spec.js:134:3 › Paragraph › Empty paragraph › should allow dropping HTML on an empty paragraph block
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
<!-- wp:heading -->
- <h2 class="wp-block-heading">My Heading</h2>
+ <h2>My Heading</h2>
<!-- /wp:heading -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
155 |
156 | await expect.poll( editor.getEditedPostContent )
> 157 | .toBe( `<!-- wp:heading -->
| ^
158 | <h2 class="wp-block-heading">My Heading</h2>
159 | <!-- /wp:heading -->` );
160 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/paragraph.spec.js:157:6
|
Run the tests:
test/e2e/specs/editor/blocks/preformatted.spec.js#L25
4) [chromium] › editor/blocks/preformatted.spec.js:11:2 › Preformatted › should preserve character newlines
Error: Snapshot comparison failed:
<!-- wp:preformatted -->
<pre class="wp-block-preformatted">0<br>1<br>2</pre>
<!-- /wp:preformatted -->
Expected: /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/__snapshots__/Preformatted-should-preserve-character-newlines-2-chromium.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-blocks-preformatted-Preformatted-should-preserve-character-newlines-chromium/Preformatted-should-preserve-character-newlines-2-actual.txt
23 | await editor.clickBlockOptionsMenuItem( 'Edit as HTML' );
24 |
> 25 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
26 | } );
27 |
28 | test( 'should preserve white space when merging', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/preformatted.spec.js:25:49
|
Run the tests
31 failed
[chromium] › editor/blocks/navigation-colors.spec.js:78:2 › Navigation colors › Top level navigation links inherit the text color from the theme/group but do not apply to the submenu or overlay text
[chromium] › editor/blocks/paragraph.spec.js:98:3 › Paragraph › Empty paragraph › should allow dropping blocks on an empty paragraph block
[chromium] › editor/blocks/paragraph.spec.js:134:3 › Paragraph › Empty paragraph › should allow dropping HTML on an empty paragraph block
[chromium] › editor/blocks/preformatted.spec.js:11:2 › Preformatted › should preserve character newlines
[chromium] › editor/blocks/preformatted.spec.js:28:2 › Preformatted › should preserve white space when merging
[chromium] › editor/blocks/quote.spec.js:15:2 › Quote › should allow the user to type right away
[chromium] › editor/blocks/quote.spec.js:31:2 › Quote › can be created by using > at the start of a paragraph block
[chromium] › editor/blocks/quote.spec.js:56:2 › Quote › can be created by typing > in front of text of a paragraph block
[chromium] › editor/blocks/quote.spec.js:76:2 › Quote › can be created by typing "/quote" ──────
[chromium] › editor/blocks/quote.spec.js:93:2 › Quote › can be created by converting a paragraph
[chromium] › editor/blocks/quote.spec.js:111:2 › Quote › can be created by converting multiple paragraphs
[chromium] › editor/blocks/quote.spec.js:220:2 › Quote › can be created by converting a heading
[chromium] › editor/blocks/quote.spec.js:236:2 › Quote › can be converted to a pullquote ───────
[chromium] › editor/blocks/quote.spec.js:251:2 › Quote › can be split at the end ───────────────
[chromium] › editor/blocks/quote.spec.js:284:2 › Quote › can be unwrapped on Backspace ─────────
[chromium] › editor/blocks/quote.spec.js:297:2 › Quote › can be unwrapped with content on Backspace
[chromium] › editor/blocks/separator.spec.js:11:2 › Separator › can be created by three dashes and enter
[chromium] › editor/blocks/spacer.spec.js:11:2 › Spacer › can be created by typing "/spacer" ───
[chromium] › editor/blocks/spacer.spec.js:22:2 › Spacer › can be resized using the drag handle and remains selected after being dragged
[chromium] › editor/blocks/table.spec.js:11:2 › Table › displays a form for choosing the row and column count of the table
[chromium] › editor/blocks/table.spec.js:50:2 › Table › allows text to by typed into cells ─────
[chromium] › editor/blocks/table.spec.js:80:2 › Table › allows header and footer rows to be switched on and off
[chromium] › editor/blocks/table.spec.js:146:2 › Table › allows adding and deleting columns across the table header, body and footer
[chromium] › editor/blocks/table.spec.js:187:2 › Table › allows columns to be aligned ──────────
[chromium] › editor/blocks/table.spec.js:231:2 › Table › allows cells to be selected when the cell area outside of the RichText is clicked
[chromium] › editor/blocks/table.spec.js:270:2 › Table › allows a caption to be added ──────────
[chromium] › editor/blocks/table.spec.js:286:2 › Table › up and down arrow navigation ──────────
[chromium] › editor/plugins/align-hook.spec.js:83:3 › Align Hook Works as Expected › Block with align true › correctly applies the selected alignment and correctly removes the alignment
[chromium] › editor/plugins/align-hook.spec.js:160:3 › Align Hook Works as Expected › Block with align array › correctly applies the selected alignment and correctly removes the alignment
[chromium] › editor/plugins/align-hook.spec.js:233:3 › Align Hook Works as Expected › Block with default align › the default markup does not contain the alignment attribute but contains the alignment class
[chromium] › editor/plugins/align-hook.spec.js:261:3 › Align Hook Works as Expected › Block with default align › correctly applies the selected alignment and correctly removes the alignment
1 skipped
82 passed (12.6m)
|
The logs for this run have expired and are no longer available.
Loading