Rich text: Try debouncing useInput
to improve performance and fix infinite loop
#85486
Annotations
10 errors and 1 notice
test/e2e/specs/editor/blocks/gallery.spec.js#L149
1) [chromium] › editor/blocks/gallery.spec.js:113:2 › Gallery › gallery caption can be edited ────
Error: expect(received).toMatch(expected)
Expected pattern: /<figcaption.*?>Tested gallery caption<\/figcaption>/
Received string: "<!-- wp:gallery {\"linkTo\":\"none\"} -->
<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped\"><!-- wp:image {\"id\":63,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->
<figure class=\"wp-block-image size-large\"><img src=\"http://localhost:8889/wp-content/uploads/2023/10/10x10_e2e_test_image_z9T8jK.png\" alt=\"\" class=\"wp-image-63\"/></figure>
<!-- /wp:image --><figcaption class=\"blocks-gallery-caption wp-element-caption\">Tested gal</figcaption></figure>
<!-- /wp:gallery -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
147 | await page.keyboard.type( galleryCaption );
148 |
> 149 | await expect
| ^
150 | .poll( editor.getEditedPostContent )
151 | .toMatch(
152 | new RegExp( `<figcaption.*?>${ galleryCaption }</figcaption>` )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:149:3
|
test/e2e/specs/editor/blocks/gallery.spec.js#L149
1) [chromium] › editor/blocks/gallery.spec.js:113:2 › Gallery › gallery caption can be edited ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatch(expected)
Expected pattern: /<figcaption.*?>Tested gallery caption<\/figcaption>/
Received string: "<!-- wp:gallery {\"linkTo\":\"none\"} -->
<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped\"><!-- wp:image {\"id\":68,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->
<figure class=\"wp-block-image size-large\"><img src=\"http://localhost:8889/wp-content/uploads/2023/10/10x10_e2e_test_image_z9T8jK.png\" alt=\"\" class=\"wp-image-68\"/></figure>
<!-- /wp:image --><figcaption class=\"blocks-gallery-caption wp-element-caption\">Tested gallery c</figcaption></figure>
<!-- /wp:gallery -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
147 | await page.keyboard.type( galleryCaption );
148 |
> 149 | await expect
| ^
150 | .poll( editor.getEditedPostContent )
151 | .toMatch(
152 | new RegExp( `<figcaption.*?>${ galleryCaption }</figcaption>` )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:149:3
|
test/e2e/specs/editor/blocks/gallery.spec.js#L149
1) [chromium] › editor/blocks/gallery.spec.js:113:2 › Gallery › gallery caption can be edited ────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatch(expected)
Expected pattern: /<figcaption.*?>Tested gallery caption<\/figcaption>/
Received string: "<!-- wp:gallery {\"linkTo\":\"none\"} -->
<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped\"><!-- wp:image {\"id\":70,\"sizeSlug\":\"large\",\"linkDestination\":\"none\"} -->
<figure class=\"wp-block-image size-large\"><img src=\"http://localhost:8889/wp-content/uploads/2023/10/10x10_e2e_test_image_z9T8jK.png\" alt=\"\" class=\"wp-image-70\"/></figure>
<!-- /wp:image --><figcaption class=\"blocks-gallery-caption wp-element-caption\">Tested gallery</figcaption></figure>
<!-- /wp:gallery -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
147 | await page.keyboard.type( galleryCaption );
148 |
> 149 | await expect
| ^
150 | .poll( editor.getEditedPostContent )
151 | .toMatch(
152 | new RegExp( `<figcaption.*?>${ galleryCaption }</figcaption>` )
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:149:3
|
test/e2e/specs/editor/blocks/heading.spec.js#L18
2) [chromium] › editor/blocks/heading.spec.js:11:2 › Heading › can be created by prefixing number sign and a space
Error: expect(received).toMatchObject(expected)
- Expected - 3
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": "3",
- "level": 3,
+ "content": "### 3",
},
- "name": "core/heading",
+ "name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
16 | await page.keyboard.type( '### 3' );
17 |
> 18 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
19 | {
20 | name: 'core/heading',
21 | attributes: { content: '3', level: 3 },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/heading.spec.js:18:3
|
test/e2e/specs/editor/blocks/heading.spec.js#L18
2) [chromium] › editor/blocks/heading.spec.js:11:2 › Heading › can be created by prefixing number sign and a space
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 3
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": "3",
- "level": 3,
+ "content": "### 3",
},
- "name": "core/heading",
+ "name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
16 | await page.keyboard.type( '### 3' );
17 |
> 18 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
19 | {
20 | name: 'core/heading',
21 | attributes: { content: '3', level: 3 },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/heading.spec.js:18:3
|
test/e2e/specs/editor/blocks/heading.spec.js#L18
2) [chromium] › editor/blocks/heading.spec.js:11:2 › Heading › can be created by prefixing number sign and a space
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 3
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": "3",
- "level": 3,
+ "content": "### 3",
},
- "name": "core/heading",
+ "name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
16 | await page.keyboard.type( '### 3' );
17 |
> 18 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
19 | {
20 | name: 'core/heading',
21 | attributes: { content: '3', level: 3 },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/heading.spec.js:18:3
|
test/e2e/specs/editor/blocks/heading.spec.js#L35
3) [chromium] › editor/blocks/heading.spec.js:26:2 › Heading › can be created by prefixing existing content with number signs and a space
Error: expect(received).toMatchObject(expected)
- Expected - 3
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": "4",
- "level": 4,
+ "content": "#### 4",
},
- "name": "core/heading",
+ "name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
33 | await page.keyboard.type( '#### ' );
34 |
> 35 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
36 | {
37 | name: 'core/heading',
38 | attributes: { content: '4', level: 4 },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/heading.spec.js:35:3
|
test/e2e/specs/editor/blocks/heading.spec.js#L35
3) [chromium] › editor/blocks/heading.spec.js:26:2 › Heading › can be created by prefixing existing content with number signs and a space
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 3
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": "4",
- "level": 4,
+ "content": "#### 4",
},
- "name": "core/heading",
+ "name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
33 | await page.keyboard.type( '#### ' );
34 |
> 35 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
36 | {
37 | name: 'core/heading',
38 | attributes: { content: '4', level: 4 },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/heading.spec.js:35:3
|
test/e2e/specs/editor/blocks/heading.spec.js#L35
3) [chromium] › editor/blocks/heading.spec.js:26:2 › Heading › can be created by prefixing existing content with number signs and a space
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 3
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": "4",
- "level": 4,
+ "content": "#4",
},
- "name": "core/heading",
+ "name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
33 | await page.keyboard.type( '#### ' );
34 |
> 35 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
36 | {
37 | name: 'core/heading',
38 | attributes: { content: '4', level: 4 },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/heading.spec.js:35:3
|
test/e2e/specs/editor/blocks/heading.spec.js#L50
4) [chromium] › editor/blocks/heading.spec.js:43:2 › Heading › should not work with the list input rule
Error: expect(received).toMatchObject(expected)
- Expected - 3
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": "1. H",
- "level": 2,
+ "content": "## 1. H",
},
- "name": "core/heading",
+ "name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
48 | await page.keyboard.type( '## 1. H' );
49 |
> 50 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
51 | {
52 | name: 'core/heading',
53 | attributes: { content: '1. H', level: 2 },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/heading.spec.js:50:3
|
42 failed
[chromium] › editor/blocks/gallery.spec.js:113:2 › Gallery › gallery caption can be edited ─────
[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:26:2 › Heading › can be created by prefixing existing content with number signs and a space
[chromium] › editor/blocks/heading.spec.js:43:2 › Heading › should not work with the list input rule
[chromium] › editor/blocks/heading.spec.js:58:2 › Heading › should work with the format input rules
[chromium] › editor/blocks/heading.spec.js:73:2 › Heading › should create a paragraph block above when pressing enter at the start
[chromium] › editor/blocks/heading.spec.js:94:2 › Heading › should create a paragraph block below when pressing enter at the end
[chromium] › editor/blocks/heading.spec.js:114:2 › Heading › should correctly apply custom colors
[chromium] › editor/blocks/heading.spec.js:149:2 › Heading › should correctly apply named colors
[chromium] › editor/blocks/heading.spec.js:183:2 › Heading › should change heading level with keyboard shortcuts
[chromium] › editor/blocks/heading.spec.js:245:2 › Heading › should be converted from a heading to a paragraph with keyboard shortcuts
[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:35:2 › List (@Firefox) › can be created by typing an asterisk in front of text of a paragraph block
[chromium] › editor/blocks/list.spec.js:54:2 › List (@Firefox) › can be created by using a number at the start of a paragraph block
[chromium] › editor/blocks/list.spec.js:87:2 › List (@Firefox) › should undo asterisk transform with backspace (-firefox)
[chromium] › editor/blocks/list.spec.js:102:2 › List (@Firefox) › should undo asterisk transform with backspace after selection changes (-firefox)
[chromium] › editor/blocks/list.spec.js:120:2 › List (@Firefox) › should undo asterisk transform with backspace setting isTyping state (-firefox)
[chromium] › editor/blocks/list.spec.js:136:2 › List (@Firefox) › should undo asterisk transform with backspace after selection changes without requestIdleCallback (-firefox)
[chromium] › editor/blocks/list.spec.js:170:2 › List (@Firefox) › should not undo asterisk transform with backspace after typing
[chromium] › editor/blocks/list.spec.js:182:2 › List (@Firefox) › should not undo asterisk transform with backspace after selection change
[chromium] › editor/blocks/list.spec.js:220:2 › List (@Firefox) › can be created by converting a paragraph
[chromium] › editor/blocks/list.spec.js:287:2 › List (@Firefox) › should not transform lines in block when transforming multiple blocks
[chromium] › editor/blocks/list.spec.js:335:2 › List (@Firefox) › can be converted when nested to paragraphs
[chromium] › editor/blocks/list.spec.js:421:2 › List (@Firefox) › should split into two with paragraph and merge lists
[chromium] › editor/blocks/list.spec.js:558:2 › List (@Firefox) › should split into two ordered lists with paragraph
[chromium] › editor/blocks/list.spec.js:900:2 › List (@Firefox) › should create and remove indented list with keyboard only
[chromium] › editor/blocks/list.spec.js:1013:2 › List (@Firefox) › should place the caret in the right place with nested list
[chromium] › editor/blocks/list.spec.js:1044:2 › List (@Firefox) › should not indent list on space with modifier
[chromium] › editor/blocks/list.spec.js:1084:2 › List (@Firefox) › should preserve indentation after merging backward and forward (-firefox)
[chromium] › editor/blocks/list.spec.js:1148:2 › List (@Firefox) › first empty list item is graciously removed
[chromium] › editor/blocks/list.spec.js:1173:2 › List (@Firefox) › should not change the contents when you change the list type to Ordered
[chromium] › editor/blocks/list.spec.js:1203:2 › List (@Firefox) › shou
|
The logs for this run have expired and are no longer available.
Loading