Improve code commenting around focus mount behaviour of rich text Link UI #82346
Annotations
10 errors and 1 notice
test/e2e/specs/editor/blocks/links.spec.js#L74
1) [chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
Array [
Object {
"attributes": Object {
- "content": "This is <a href=\"https://wordpress.org/gutenberg\" target=\"_blank\" rel=\"noreferrer noopener\">Gutenberg</a>",
+ "content": "This is <a href=\"https://wordpress.org/gutenberg\">Gutenberg</a>",
},
"name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
72 |
73 | // The link should have been inserted.
> 74 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
75 | {
76 | name: 'core/paragraph',
77 | attributes: {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:74:3
|
test/e2e/specs/editor/blocks/links.spec.js#L60
1) [chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByLabel('Open in new tab')
============================================================
58 | // Navigate to and toggle the "Open in new tab" checkbox.
59 | const checkbox = page.getByLabel( 'Open in new tab' );
> 60 | await checkbox.click();
| ^
61 |
62 | // Toggle should still have focus and be checked.
63 | await expect( checkbox ).toBeChecked();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:60:18
|
test/e2e/specs/editor/blocks/links.spec.js#L74
1) [chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
Array [
Object {
"attributes": Object {
- "content": "This is <a href=\"https://wordpress.org/gutenberg\" target=\"_blank\" rel=\"noreferrer noopener\">Gutenberg</a>",
+ "content": "This is <a href=\"https://wordpress.org/gutenberg\">Gutenberg</a>",
},
"name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
72 |
73 | // The link should have been inserted.
> 74 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
75 | {
76 | name: 'core/paragraph',
77 | attributes: {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:74:3
|
test/e2e/specs/editor/blocks/links.spec.js#L117
2) [chromium] › editor/blocks/links.spec.js:85:2 › Links › can update the url of an existing link
TimeoutError: locator.fill: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByPlaceholder('Search or type url')
============================================================
115 | // Edit link.
116 | await pageUtils.pressKeys( 'primary+k' );
> 117 | await page.getByPlaceholder( 'Search or type url' ).fill( '' );
| ^
118 | await page.keyboard.type( 'wordpress.org' );
119 |
120 | // Update the link.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:117:55
|
test/e2e/specs/editor/blocks/links.spec.js#L117
2) [chromium] › editor/blocks/links.spec.js:85:2 › Links › can update the url of an existing link
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.fill: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByPlaceholder('Search or type url')
============================================================
115 | // Edit link.
116 | await pageUtils.pressKeys( 'primary+k' );
> 117 | await page.getByPlaceholder( 'Search or type url' ).fill( '' );
| ^
118 | await page.keyboard.type( 'wordpress.org' );
119 |
120 | // Update the link.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:117:55
|
test/e2e/specs/editor/blocks/links.spec.js#L117
2) [chromium] › editor/blocks/links.spec.js:85:2 › Links › can update the url of an existing link
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.fill: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByPlaceholder('Search or type url')
============================================================
115 | // Edit link.
116 | await pageUtils.pressKeys( 'primary+k' );
> 117 | await page.getByPlaceholder( 'Search or type url' ).fill( '' );
| ^
118 | await page.keyboard.type( 'wordpress.org' );
119 |
120 | // Update the link.
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:117:55
|
test/e2e/specs/editor/blocks/links.spec.js#L195
3) [chromium] › editor/blocks/links.spec.js:149:2 › Links › toggle state of advanced link settings is preserved across editing links
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('region', { name: 'Editor content' }).getByRole('button', { name: 'Advanced' })
============================================================
193 | name: 'Advanced',
194 | } )
> 195 | .click();
| ^
196 |
197 | // Move focus out of Link UI and into Paragraph block.
198 | await pageUtils.pressKeys( 'Escape' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:195:5
|
test/e2e/specs/editor/blocks/links.spec.js#L195
3) [chromium] › editor/blocks/links.spec.js:149:2 › Links › toggle state of advanced link settings is preserved across editing links
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('region', { name: 'Editor content' }).getByRole('button', { name: 'Advanced' })
============================================================
193 | name: 'Advanced',
194 | } )
> 195 | .click();
| ^
196 |
197 | // Move focus out of Link UI and into Paragraph block.
198 | await pageUtils.pressKeys( 'Escape' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:195:5
|
test/e2e/specs/editor/blocks/links.spec.js#L195
3) [chromium] › editor/blocks/links.spec.js:149:2 › Links › toggle state of advanced link settings is preserved across editing links
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('region', { name: 'Editor content' }).getByRole('button', { name: 'Advanced' })
============================================================
193 | name: 'Advanced',
194 | } )
> 195 | .click();
| ^
196 |
197 | // Move focus out of Link UI and into Paragraph block.
198 | await pageUtils.pressKeys( 'Escape' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:195:5
|
test/e2e/specs/editor/blocks/links.spec.js#L267
4) [chromium] › editor/blocks/links.spec.js:237:2 › Links › can toggle link settings and save ────
Error: Timed out 5000ms waiting for expect(received).not.toBeChecked()
Call log:
- expect.not.toBeChecked with timeout 5000ms
- waiting for getByLabel('Open in new tab')
- waiting for getByLabel('Open in new tab')
265 |
266 | // expect settings for `Open in new tab` and `No follow`
> 267 | await expect( page.getByLabel( 'Open in new tab' ) ).not.toBeChecked();
| ^
268 | await expect( page.getByLabel( 'nofollow' ) ).not.toBeChecked();
269 |
270 | // Toggle both of the settings
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/links.spec.js:267:60
|
3 failed
[chromium] › editor/blocks/links.spec.js:11:2 › Links › can be created by selecting text and using keyboard shortcuts
[chromium] › editor/blocks/links.spec.js:85:2 › Links › can update the url of an existing link ─
[chromium] › editor/blocks/links.spec.js:149:2 › Links › toggle state of advanced link settings is preserved across editing links
1 flaky
[chromium] › editor/blocks/links.spec.js:237:2 › Links › can toggle link settings and save ─────
213 passed (19.1m)
|
The logs for this run have expired and are no longer available.
Loading