Site Editor: use EditorProvider instead of custom logic #87876
Annotations
10 errors and 1 notice
test/e2e/specs/editor/blocks/buttons.spec.js#L20
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
18 | // Check the content.
19 | const content = await editor.getEditedPostContent();
> 20 | expect( content ).toBe(
| ^
21 | `<!-- wp:buttons -->
22 | <div class="wp-block-buttons"><!-- wp:button -->
23 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:20:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L20
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
18 | // Check the content.
19 | const content = await editor.getEditedPostContent();
> 20 | expect( content ).toBe(
| ^
21 | `<!-- wp:buttons -->
22 | <div class="wp-block-buttons"><!-- wp:button -->
23 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:20:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L20
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ───────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
18 | // Check the content.
19 | const content = await editor.getEditedPostContent();
> 20 | expect( content ).toBe(
| ^
21 | `<!-- wp:buttons -->
22 | <div class="wp-block-buttons"><!-- wp:button -->
23 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:20:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:42:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:42:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L42
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">Content</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
40 | // Check the content.
41 | const content = await editor.getEditedPostContent();
> 42 | expect( content ).toBe(
| ^
43 | `<!-- wp:buttons -->
44 | <div class="wp-block-buttons"><!-- wp:button -->
45 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:42:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L73
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">WordPress</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
71 | // Check the content.
72 | const content = await editor.getEditedPostContent();
> 73 | expect( content ).toBe(
| ^
74 | `<!-- wp:buttons -->
75 | <div class="wp-block-buttons"><!-- wp:button -->
76 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:73:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L73
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">WordPress</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
71 | // Check the content.
72 | const content = await editor.getEditedPostContent();
> 73 | expect( content ).toBe(
| ^
74 | `<!-- wp:buttons -->
75 | <div class="wp-block-buttons"><!-- wp:button -->
76 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:73:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L73
3) [chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\">WordPress</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
71 | // Check the content.
72 | const content = await editor.getEditedPostContent();
> 73 | expect( content ).toBe(
| ^
74 | `<!-- wp:buttons -->
75 | <div class="wp-block-buttons"><!-- wp:button -->
76 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">WordPress</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:73:21
|
test/e2e/specs/editor/blocks/buttons.spec.js#L158
4) [chromium] › editor/blocks/buttons.spec.js:140:2 › Buttons › can jump to the link editor using the keyboard shortcut
Error: expect(received).toBe(expected) // Object.is equality
Expected: "<!-- wp:buttons -->
<div class=\"wp-block-buttons\"><!-- wp:button -->
<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https://www.wordpress.org/\">WordPress</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->"
Received: ""
156 | // Check the content.
157 | const content = await editor.getEditedPostContent();
> 158 | expect( content ).toBe(
| ^
159 | `<!-- wp:buttons -->
160 | <div class="wp-block-buttons"><!-- wp:button -->
161 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://www.wordpress.org/">WordPress</a></div>
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:158:21
|
126 failed
[chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ────────
[chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
[chromium] › editor/blocks/buttons.spec.js:51:2 › Buttons › dismisses link editor when escape is pressed
[chromium] › editor/blocks/buttons.spec.js:140:2 › Buttons › can jump to the link editor using the keyboard shortcut
[chromium] › editor/blocks/buttons.spec.js:260:2 › Buttons › can resize width ──────────────────
[chromium] › editor/blocks/buttons.spec.js:282:2 › Buttons › can apply named colors ────────────
[chromium] › editor/blocks/buttons.spec.js:311:2 › Buttons › can apply custom colors ───────────
[chromium] › editor/blocks/buttons.spec.js:343:2 › Buttons › can apply named gradient background color
[chromium] › editor/blocks/buttons.spec.js:372:2 › Buttons › can apply custom gradient background color
[chromium] › editor/blocks/classic.spec.js:31:2 › Classic › should be inserted ─────────────────
[chromium] › editor/blocks/classic.spec.js:42:2 › Classic › should insert media, convert to blocks, and undo in one step
[chromium] › editor/blocks/classic.spec.js:104:2 › Classic › Should not fail after save/reload ─
[chromium] › editor/blocks/code.spec.js:11:2 › Code › can be created by three backticks and enter
[chromium] › editor/blocks/code.spec.js:39:2 › Code › should paste plain text ──────────────────
[chromium] › editor/blocks/comments.spec.js:60:2 › Comments › Pagination links are working as expected
[chromium] › editor/blocks/comments.spec.js:112:2 › Comments › Pagination links are not appearing if break comments is not enabled
[chromium] › editor/blocks/comments.spec.js:181:2 › Comments › The editable block version is rendered if the legacy attribute is false
[chromium] › editor/blocks/comments.spec.js:209:2 › Comments › The PHP version is rendered if the legacy attribute is true
[chromium] › editor/blocks/gallery.spec.js:42:2 › Gallery › can be transformed from pasting shortcode, and can undo/redo
[chromium] › editor/blocks/gallery.spec.js:89:2 › Gallery › can be created using uploaded images
[chromium] › editor/blocks/gallery.spec.js:115:2 › Gallery › gallery caption can be edited ─────
[chromium] › editor/blocks/gallery.spec.js:158:2 › Gallery › uploaded images' captions can be edited
[chromium] › editor/blocks/group.spec.js:11:2 › Group › can be created using the block inserter
[chromium] › editor/blocks/group.spec.js:41:2 › Group › can be created using the slash inserter
[chromium] › editor/blocks/group.spec.js:64:2 › Group › can have other blocks appended to it using the button appender
[chromium] › editor/blocks/group.spec.js:83:2 › Group › can merge into group with Backspace ────
[chromium] › editor/blocks/html.spec.js:11:2 › HTML block › can be created by typing "/html" ───
[chromium] › editor/blocks/html.spec.js:36:2 › HTML block › should not encode < ────────────────
[chromium] › editor/blocks/image.spec.js:35:2 › Image › can be inserted via image upload ───────
[chromium] › editor/blocks/image.spec.js:378:2 › Image › should undo without broken temporary state
[chromium] › editor/blocks/image.spec.js:560:2 › Image › image inserted via upload should appear in the frontend published post content
[chromium] › editor/blocks/image.spec.js:596:2 › Image › image inserted via link should appear in the frontend published post content
[chromium] › editor/blocks/image.spec.js:638:2 › Image › adding a link should reflect configuration in published post content
[chromium] › editor/blocks/image.spec.js:698:2 › Image › should upload through prepublish panel
[chromium] › editor/blocks/list.spec.js:11:2 › List (@Firefox) › can be created by using an asterisk at the start of a paragraph block
[chromium] › editor/blocks/list.spec.js:37:2 › List (@Firefox) › can be created by typing an asterisk in front of text of a paragraph block
[chro
|
The logs for this run have expired and are no longer available.
Loading