Fix clipboard read/write on regular elements in e2e tests #85448
Annotations
7 errors and 1 notice
test/e2e/specs/editor/blocks/code.spec.js#L47
1) [chromium] › editor/blocks/code.spec.js:37:2 › Code › should paste plain text ─────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 0
+ Received + 1
Array [
Object {
"attributes": Object {
"content": "<img />
+ <br><img />
<br>",
},
"name": "core/code",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
45 | await pageUtils.pressKeys( 'primary+v' );
46 |
> 47 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
48 | {
49 | name: 'core/code',
50 | attributes: { content: '<img />\n\t<br>' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/code.spec.js:47:3
|
test/e2e/specs/editor/blocks/code.spec.js#L47
1) [chromium] › editor/blocks/code.spec.js:37:2 › Code › should paste plain text ─────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 0
+ Received + 1
Array [
Object {
"attributes": Object {
"content": "<img />
+ <br><img />
<br>",
},
"name": "core/code",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
45 | await pageUtils.pressKeys( 'primary+v' );
46 |
> 47 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
48 | {
49 | name: 'core/code',
50 | attributes: { content: '<img />\n\t<br>' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/code.spec.js:47:3
|
test/e2e/specs/editor/blocks/code.spec.js#L47
1) [chromium] › editor/blocks/code.spec.js:37:2 › Code › should paste plain text ─────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 0
+ Received + 1
Array [
Object {
"attributes": Object {
"content": "<img />
+ <br><img />
<br>",
},
"name": "core/code",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
45 | await pageUtils.pressKeys( 'primary+v' );
46 |
> 47 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
48 | {
49 | name: 'core/code',
50 | attributes: { content: '<img />\n\t<br>' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/code.spec.js:47:3
|
test/e2e/specs/editor/blocks/gallery.spec.js#L76
2) [chromium] › editor/blocks/gallery.spec.js:42:2 › Gallery › can be transformed from pasting shortcode, and can undo/redo
Error: expect(received).toBe(expected) // Object.is equality
Expected: ""
Received: "<!-- wp:gallery {\"columns\":3,\"linkTo\":\"none\"} -->
<figure class=\"wp-block-gallery has-nested-images columns-3 is-cropped\"><!-- wp:image {\"id\":57,\"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-57\"/></figure>
<!-- /wp:image --></figure>
<!-- /wp:gallery -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
74 | );
75 |
> 76 | await expect.poll( editor.getEditedPostContent ).toBe( '' );
| ^
77 |
78 | await page.click(
79 | 'role=region[name="Editor top bar"i] >> role=button[name="Redo"i]'
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:76:3
|
test/e2e/specs/editor/blocks/gallery.spec.js#L76
2) [chromium] › editor/blocks/gallery.spec.js:42:2 › Gallery › can be transformed from pasting shortcode, and can undo/redo
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: ""
Received: "<!-- wp:gallery {\"columns\":3,\"linkTo\":\"none\"} -->
<figure class=\"wp-block-gallery has-nested-images columns-3 is-cropped\"><!-- wp:image {\"id\":59,\"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-59\"/></figure>
<!-- /wp:image --></figure>
<!-- /wp:gallery -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
74 | );
75 |
> 76 | await expect.poll( editor.getEditedPostContent ).toBe( '' );
| ^
77 |
78 | await page.click(
79 | 'role=region[name="Editor top bar"i] >> role=button[name="Redo"i]'
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:76:3
|
test/e2e/specs/editor/blocks/gallery.spec.js#L76
2) [chromium] › editor/blocks/gallery.spec.js:42:2 › Gallery › can be transformed from pasting shortcode, and can undo/redo
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: ""
Received: "<!-- wp:gallery {\"columns\":3,\"linkTo\":\"none\"} -->
<figure class=\"wp-block-gallery has-nested-images columns-3 is-cropped\"><!-- wp:image {\"id\":61,\"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-61\"/></figure>
<!-- /wp:image --></figure>
<!-- /wp:gallery -->"
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
74 | );
75 |
> 76 | await expect.poll( editor.getEditedPostContent ).toBe( '' );
| ^
77 |
78 | await page.click(
79 | 'role=region[name="Editor top bar"i] >> role=button[name="Redo"i]'
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/gallery.spec.js:76:3
|
|
|
The logs for this run have expired and are no longer available.
Loading