Lazy load block edit functions #88917
Annotations
10 errors and 1 notice
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
1) [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 - 1
+ Received + 1
<!-- 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>
+ <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">t</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
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
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
1) [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 - 1
+ Received + 1
<!-- 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>
+ <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">nt</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
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
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L42
1) [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 - 1
+ Received + 1
<!-- 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>
+ <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">t</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
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
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L154
2) [chromium] › editor/blocks/buttons.spec.js:140:2 › Buttons › can jump to the link editor using the keyboard shortcut
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=link[name=/^wordpress\\.org/]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=link[name=/^wordpress\\.org/]')
152 | await expect(
153 | page.locator( 'role=link[name=/^wordpress\\.org/]' )
> 154 | ).toBeFocused();
| ^
155 |
156 | // Check the content.
157 | const content = await editor.getEditedPostContent();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:154:5
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L158
2) [chromium] › editor/blocks/buttons.spec.js:140:2 › Buttons › can jump to the link editor using the keyboard shortcut
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 3
+ Received + 1
<!-- 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>
+ <div class="wp-block-buttons"><!-- wp:button /--></div>
<!-- /wp:buttons -->
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
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L158
2) [chromium] › editor/blocks/buttons.spec.js:140:2 › Buttons › can jump to the link editor using the keyboard shortcut
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 3
+ Received + 1
<!-- 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>
+ <div class="wp-block-buttons"><!-- wp:button /--></div>
<!-- /wp:buttons -->
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
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L208
3) [chromium] › editor/blocks/buttons.spec.js:167:2 › Buttons › can toggle button link settings ──
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
@@ -3,11 +3,11 @@
"innerBlocks": Array [
Object {
"attributes": Object {
"linkTarget": "_blank",
"rel": "noreferrer noopener",
- "text": "WordPress",
+ "text": "s",
"url": "https://www.wordpress.org/",
},
"name": "core/button",
},
],
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
206 |
207 | // The link should have been inserted.
> 208 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
209 | {
210 | name: 'core/buttons',
211 | innerBlocks: [
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:208:41
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L195
3) [chromium] › editor/blocks/buttons.spec.js:167:2 › Buttons › can toggle button link settings ──
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByLabel('Open in new tab')
============================================================
193 |
194 | // Navigate to and toggle the "Open in new tab" checkbox.
> 195 | await newTabCheckbox.click();
| ^
196 |
197 | // Toggle should still have focus and be checked.
198 | await expect( newTabCheckbox ).toBeChecked();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:195:24
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L208
3) [chromium] › editor/blocks/buttons.spec.js:167:2 › Buttons › can toggle button link settings ──
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
@@ -3,11 +3,11 @@
"innerBlocks": Array [
Object {
"attributes": Object {
"linkTarget": "_blank",
"rel": "noreferrer noopener",
- "text": "WordPress",
+ "text": "s",
"url": "https://www.wordpress.org/",
},
"name": "core/button",
},
],
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
206 |
207 | // The link should have been inserted.
> 208 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
209 | {
210 | name: 'core/buttons',
211 | innerBlocks: [
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:208:41
|
Run the tests:
test/e2e/specs/editor/blocks/buttons.spec.js#L273
4) [chromium] › editor/blocks/buttons.spec.js:260:2 › Buttons › can resize width ─────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 3
+ Received + 1
<!-- wp:buttons -->
- <div class="wp-block-buttons"><!-- wp:button {"width":25} -->
- <div class="wp-block-button has-custom-width wp-block-button__width-25"><a class="wp-block-button__link wp-element-button">Content</a></div>
- <!-- /wp:button --></div>
+ <div class="wp-block-buttons"><!-- wp:button {"width":25} /--></div>
<!-- /wp:buttons -->
271 | // Check the content.
272 | const content = await editor.getEditedPostContent();
> 273 | expect( content ).toBe(
| ^
274 | `<!-- wp:buttons -->
275 | <div class="wp-block-buttons"><!-- wp:button {"width":25} -->
276 | <div class="wp-block-button has-custom-width wp-block-button__width-25"><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:273:21
|
Run the tests
93 failed
[chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter)
[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:167:2 › Buttons › can toggle button link settings ───
[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/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/columns.spec.js:269:3 › Columns › following paragraph › should be deleted on Backspace when empty
[chromium] › editor/blocks/columns.spec.js:288:3 › Columns › following paragraph › should only select Columns on Backspace when non-empty
[chromium] › editor/blocks/gallery.spec.js:89:2 › Gallery › can be created using uploaded images
[chromium] › editor/blocks/group.spec.js:83:2 › Group › can merge into group with Backspace ────
[chromium] › editor/blocks/heading.spec.js:11:2 › Heading › can be created by prefixing number sign and a space
[chromium] › editor/blocks/heading.spec.js:47:2 › Heading › should not work with the list input rule
[chromium] › editor/blocks/heading.spec.js:64:2 › Heading › should work with the format input rules
[chromium] › editor/blocks/heading.spec.js:81:2 › Heading › should create a paragraph block above when pressing enter at the start
[chromium] › editor/blocks/heading.spec.js:102:2 › Heading › should create a paragraph block below when pressing enter at the end
[chromium] › editor/blocks/heading.spec.js:122:2 › Heading › should correctly apply custom colors
[chromium] › editor/blocks/heading.spec.js:159:2 › Heading › should correctly apply named colors
[chromium] › editor/blocks/heading.spec.js:195:2 › Heading › should change heading level with keyboard shortcuts
[chromium] › editor/blocks/heading.spec.js:261:2 › Heading › should be converted from a heading to a paragraph with keyboard shortcuts
[chromium] › editor/blocks/image.spec.js:64:2 › Image › should place caret on caption when clicking to add one
[chromium] › editor/blocks/links.spec.js:21:2 › Links › will use Post title as link text if link to existing post is created without any text selected
[chromium] › editor/blocks/links.spec.js:65:2 › Links › can be created by selecting text and clicking link insertion button in block toolbar
[chromium] › editor/blocks/links.spec.js:124:2 › Links › can be created without any text selected
[chromium] › editor/blocks/links.spec.js:156:2 › Links › will automatically create a link if selected text is a valid HTTP based URL
[chromium] › editor/blocks/links.spec.js:187:2 › Links › does not create link when link ui is closed without submission
[chromium] › editor/blocks/links.spec.js:222:2 › Links › can edit existing links ───────────────
[chromium] › editor/blocks/links.spec.js:253:2 › Links › can remove existing links ─────────────
[chromium] › editor/blocks/links.spec.js:299:2 › Links › allows arrow keys to be pressed during link creation in "Docked Toolbar" mode
[chromium] › editor/blocks/links.spec.js:329:2 › Links › can be edited when within a link but no selection has been made ("collapsed")
[chromium] › editor/blocks/links.spec.js:362:2 › Links › escape dismisses the Link UI popover and returns focus
[chromium] › editor/blocks/links.spec.js:429:2 › Links › can be created and modified using only the ke
|
The logs for this run have expired and are no longer available.
Loading