Paste: add e2e tests for selection #103138
Annotations
5 errors and 1 notice
Run the tests:
test/e2e/specs/editor/various/rich-text.spec.js#L604
1) [webkit] › editor/various/rich-text.spec.js:582:2 › RichText (@Firefox, @WebKit) › should apply active formatting for inline paste
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
Array [
Object {
"attributes": Object {
- "content": "<strong>13‸2</strong>3",
+ "content": "<strong>13</strong>‸<strong>2</strong>3",
},
"name": "core/paragraph",
},
]
602 | await page.keyboard.type( '‸' );
603 |
> 604 | expect( await editor.getBlocks() ).toMatchObject( [
| ^
605 | {
606 | name: 'core/paragraph',
607 | attributes: { content: '<strong>13‸2</strong>3' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/rich-text.spec.js:604:38
|
Run the tests:
test/e2e/specs/editor/various/rich-text.spec.js#L604
1) [webkit] › editor/various/rich-text.spec.js:582:2 › RichText (@Firefox, @WebKit) › should apply active formatting for inline paste
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
Array [
Object {
"attributes": Object {
- "content": "<strong>13‸2</strong>3",
+ "content": "<strong>13</strong>‸<strong>2</strong>3",
},
"name": "core/paragraph",
},
]
602 | await page.keyboard.type( '‸' );
603 |
> 604 | expect( await editor.getBlocks() ).toMatchObject( [
| ^
605 | {
606 | name: 'core/paragraph',
607 | attributes: { content: '<strong>13‸2</strong>3' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/rich-text.spec.js:604:38
|
Run the tests:
test/e2e/specs/editor/various/rich-text.spec.js#L604
1) [webkit] › editor/various/rich-text.spec.js:582:2 › RichText (@Firefox, @WebKit) › should apply active formatting for inline paste
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
Array [
Object {
"attributes": Object {
- "content": "<strong>13‸2</strong>3",
+ "content": "<strong>13</strong>‸<strong>2</strong>3",
},
"name": "core/paragraph",
},
]
602 | await page.keyboard.type( '‸' );
603 |
> 604 | expect( await editor.getBlocks() ).toMatchObject( [
| ^
605 | {
606 | name: 'core/paragraph',
607 | attributes: { content: '<strong>13‸2</strong>3' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/rich-text.spec.js:604:38
|
Run the tests
Process completed with exit code 1.
|
Archive debug artifacts (screenshots, traces)
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
|
Loading