Rich text: use getPasteEventData #85518
Annotations
10 errors and 1 notice
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L26
1) [chromium] › editor/various/copy-cut-paste.spec.js:11:2 › Copy/cut/paste › should copy and paste individual blocks with collapsed selection
Error: Snapshot comparison failed:
<!-- wp:paragraph -->
<p>Copy - collapsed selection</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Copy - collapsed selection</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-54a69-aste-individual-blocks-with-collapsed-selection-chromium/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-54a69-aste-individual-blocks-with-collapsed-selection-chromium/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-actual.txt
24 | await page.keyboard.press( 'ArrowDown' );
25 | await pageUtils.pressKeys( 'primary+v' );
> 26 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
27 | } );
28 |
29 | test( 'should cut and paste individual blocks with collapsed selection', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:26:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L26
1) [chromium] › editor/various/copy-cut-paste.spec.js:11:2 › Copy/cut/paste › should copy and paste individual blocks with collapsed selection
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:paragraph -->
<p>Copy - collapsed selection</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Copy - collapsed selection</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-54a69-aste-individual-blocks-with-collapsed-selection-chromium-retry1/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-54a69-aste-individual-blocks-with-collapsed-selection-chromium-retry1/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-actual.txt
24 | await page.keyboard.press( 'ArrowDown' );
25 | await pageUtils.pressKeys( 'primary+v' );
> 26 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
27 | } );
28 |
29 | test( 'should cut and paste individual blocks with collapsed selection', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:26:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L26
1) [chromium] › editor/various/copy-cut-paste.spec.js:11:2 › Copy/cut/paste › should copy and paste individual blocks with collapsed selection
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:paragraph -->
<p>Copy - collapsed selection</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Copy - collapsed selection</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-54a69-aste-individual-blocks-with-collapsed-selection-chromium-retry2/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-54a69-aste-individual-blocks-with-collapsed-selection-chromium-retry2/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-actual.txt
24 | await page.keyboard.press( 'ArrowDown' );
25 | await pageUtils.pressKeys( 'primary+v' );
> 26 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
27 | } );
28 |
29 | test( 'should cut and paste individual blocks with collapsed selection', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:26:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L52
2) [chromium] › editor/various/copy-cut-paste.spec.js:29:2 › Copy/cut/paste › should cut and paste individual blocks with collapsed selection
Error: Snapshot comparison failed:
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Cut - collapsed selection</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-e44ba-aste-individual-blocks-with-collapsed-selection-chromium/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-e44ba-aste-individual-blocks-with-collapsed-selection-chromium/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-actual.txt
50 | await page.keyboard.press( 'ArrowDown' );
51 | await pageUtils.pressKeys( 'primary+v' );
> 52 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
53 | } );
54 |
55 | test( 'should copy blocks when non textual elements are focused (image, spacer)', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:52:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L52
2) [chromium] › editor/various/copy-cut-paste.spec.js:29:2 › Copy/cut/paste › should cut and paste individual blocks with collapsed selection
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Cut - collapsed selection</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-e44ba-aste-individual-blocks-with-collapsed-selection-chromium-retry1/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-e44ba-aste-individual-blocks-with-collapsed-selection-chromium-retry1/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-actual.txt
50 | await page.keyboard.press( 'ArrowDown' );
51 | await pageUtils.pressKeys( 'primary+v' );
> 52 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
53 | } );
54 |
55 | test( 'should copy blocks when non textual elements are focused (image, spacer)', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:52:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L52
2) [chromium] › editor/various/copy-cut-paste.spec.js:29:2 › Copy/cut/paste › should cut and paste individual blocks with collapsed selection
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Cut - collapsed selection</p>
<!-- /wp:paragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-e44ba-aste-individual-blocks-with-collapsed-selection-chromium-retry2/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-e44ba-aste-individual-blocks-with-collapsed-selection-chromium-retry2/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-actual.txt
50 | await page.keyboard.press( 'ArrowDown' );
51 | await pageUtils.pressKeys( 'primary+v' );
> 52 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
53 | } );
54 |
55 | test( 'should copy blocks when non textual elements are focused (image, spacer)', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:52:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L71
3) [chromium] › editor/various/copy-cut-paste.spec.js:55:2 › Copy/cut/paste › should copy blocks when non textual elements are focused (image, spacer)
Error: Snapshot comparison failed:
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></divragraph -->
<p></p>
<!-- /wp:spacerragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-5307e--non-textual-elements-are-focused-image-spacer--chromium/Copy-cut-paste-should-copy-blocks-when-non-textual-elements-are-focused-image-spacer-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-5307e--non-textual-elements-are-focused-image-spacer--chromium/Copy-cut-paste-should-copy-blocks-when-non-textual-elements-are-focused-image-spacer-2-actual.txt
69 | await editor.canvas.click( 'role=button[name="Add default block"i]' );
70 | await pageUtils.pressKeys( 'primary+v' );
> 71 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
72 | } );
73 |
74 | test( 'should cut and paste individual non textual blocks', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:71:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L71
3) [chromium] › editor/various/copy-cut-paste.spec.js:55:2 › Copy/cut/paste › should copy blocks when non textual elements are focused (image, spacer)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></divragraph -->
<p></p>
<!-- /wp:spacerragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-5307e--non-textual-elements-are-focused-image-spacer--chromium-retry1/Copy-cut-paste-should-copy-blocks-when-non-textual-elements-are-focused-image-spacer-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-5307e--non-textual-elements-are-focused-image-spacer--chromium-retry1/Copy-cut-paste-should-copy-blocks-when-non-textual-elements-are-focused-image-spacer-2-actual.txt
69 | await editor.canvas.click( 'role=button[name="Add default block"i]' );
70 | await pageUtils.pressKeys( 'primary+v' );
> 71 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
72 | } );
73 |
74 | test( 'should cut and paste individual non textual blocks', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:71:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L71
3) [chromium] › editor/various/copy-cut-paste.spec.js:55:2 › Copy/cut/paste › should copy blocks when non textual elements are focused (image, spacer)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Snapshot comparison failed:
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></divragraph -->
<p></p>
<!-- /wp:spacerragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-5307e--non-textual-elements-are-focused-image-spacer--chromium-retry2/Copy-cut-paste-should-copy-blocks-when-non-textual-elements-are-focused-image-spacer-2-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-s-5307e--non-textual-elements-are-focused-image-spacer--chromium-retry2/Copy-cut-paste-should-copy-blocks-when-non-textual-elements-are-focused-image-spacer-2-actual.txt
69 | await editor.canvas.click( 'role=button[name="Add default block"i]' );
70 | await pageUtils.pressKeys( 'primary+v' );
> 71 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
72 | } );
73 |
74 | test( 'should cut and paste individual non textual blocks', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:71:49
|
test/e2e/specs/editor/various/copy-cut-paste.spec.js#L90
4) [chromium] › editor/various/copy-cut-paste.spec.js:74:2 › Copy/cut/paste › should cut and paste individual non textual blocks
Error: Snapshot comparison failed:
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></divragraph -->
<p></p>
<!-- /wp:spacerragraph -->
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-cut-and-paste-individual-non-textual-blocks-chromium/Copy-cut-paste-should-cut-and-paste-individual-non-textual-blocks-1-expected.txt
Received: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-cut-and-paste-individual-non-textual-blocks-chromium/Copy-cut-paste-should-cut-and-paste-individual-non-textual-blocks-1-actual.txt
88 | await editor.canvas.click( 'role=button[name="Add default block"i]' );
89 | await pageUtils.pressKeys( 'primary+v' );
> 90 | expect( await editor.getEditedPostContent() ).toMatchSnapshot();
| ^
91 | } );
92 |
93 | test( 'should respect inline copy when text is selected', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:90:49
|
23 failed
[chromium] › editor/various/copy-cut-paste.spec.js:11:2 › Copy/cut/paste › should copy and paste individual blocks with collapsed selection
[chromium] › editor/various/copy-cut-paste.spec.js:29:2 › Copy/cut/paste › should cut and paste individual blocks with collapsed selection
[chromium] › editor/various/copy-cut-paste.spec.js:55:2 › Copy/cut/paste › should copy blocks when non textual elements are focused (image, spacer)
[chromium] › editor/various/copy-cut-paste.spec.js:74:2 › Copy/cut/paste › should cut and paste individual non textual blocks
[chromium] › editor/various/copy-cut-paste.spec.js:93:2 › Copy/cut/paste › should respect inline copy when text is selected
[chromium] › editor/various/copy-cut-paste.spec.js:116:2 › Copy/cut/paste › should respect inline copy in places like input fields and textareas
[chromium] › editor/various/copy-cut-paste.spec.js:137:2 › Copy/cut/paste › should handle paste events once
[chromium] › editor/various/copy-cut-paste.spec.js:245:2 › Copy/cut/paste › should copy only partial selection of text blocks
[chromium] › editor/various/copy-cut-paste.spec.js:272:2 › Copy/cut/paste › should copy/paste partial selection with other blocks in-between
[chromium] › editor/various/copy-cut-paste.spec.js:300:2 › Copy/cut/paste › should cut partial selection of text blocks
[chromium] › editor/various/copy-cut-paste.spec.js:327:2 › Copy/cut/paste › should cut/paste partial selection with other blocks in-between
[chromium] › editor/various/copy-cut-paste.spec.js:355:2 › Copy/cut/paste › should cut partial selection and merge like a normal `delete` - not forward
[chromium] › editor/various/copy-cut-paste.spec.js:382:2 › Copy/cut/paste › should paste plain text in plain text context when cross block selection is copied
[chromium] › editor/various/copy-cut-paste.spec.js:449:2 › Copy/cut/paste › should paste preformatted in list
[chromium] › editor/various/multi-block-selection.spec.js:482:2 › Multi-block selection › should cut and paste
[chromium] › editor/various/multi-block-selection.spec.js:506:2 › Multi-block selection › should copy and paste
[chromium] › editor/various/rich-text.spec.js:441:2 › RichText › should split rich text on paste
[chromium] › editor/various/rich-text.spec.js:477:2 › RichText › should not split rich text on inline paste
[chromium] › editor/various/rich-text.spec.js:498:2 › RichText › should not split rich text on inline paste with formatting
[chromium] › editor/various/rich-text.spec.js:543:2 › RichText › should apply active formatting for inline paste
[chromium] › editor/various/rich-text.spec.js:569:2 › RichText › should preserve internal formatting
[chromium] › editor/various/rich-text.spec.js:624:2 › RichText › should paste paragraph contents into list
[chromium] › editor/various/rich-text.spec.js:666:2 › RichText › should paste list contents into paragraph
207 passed (22.5m)
|
The logs for this run have expired and are no longer available.
Loading