Update template part block to behave more like pattern block #122093
Annotations
7 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/site-editor/template-part.spec.js#L51
1) [chromium] › site-editor/template-part.spec.js:22:2 › Template Part › can create template parts via the block placeholder start blank option
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('[data-type="core/template-part"]').locator('role=button[name="Add block"i]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('[data-type="core/template-part"]').locator('role=button[name="Add block"i]')
49 | );
50 | await expect( templatePart ).toBeVisible();
> 51 | await expect( addBlockButton ).toBeVisible();
| ^
52 | } );
53 |
54 | test( 'can create template parts via the block placeholder choose existing option', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-part.spec.js:51:34
|
Run the tests:
test/e2e/specs/site-editor/template-part.spec.js#L51
1) [chromium] › site-editor/template-part.spec.js:22:2 › Template Part › can create template parts via the block placeholder start blank option
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('[data-type="core/template-part"]').locator('role=button[name="Add block"i]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('[data-type="core/template-part"]').locator('role=button[name="Add block"i]')
49 | );
50 | await expect( templatePart ).toBeVisible();
> 51 | await expect( addBlockButton ).toBeVisible();
| ^
52 | } );
53 |
54 | test( 'can create template parts via the block placeholder choose existing option', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-part.spec.js:51:34
|
Run the tests:
test/e2e/specs/site-editor/template-part.spec.js#L51
1) [chromium] › site-editor/template-part.spec.js:22:2 › Template Part › can create template parts via the block placeholder start blank option
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('[name="editor-canvas"]').contentFrame().locator('[data-type="core/template-part"]').locator('role=button[name="Add block"i]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('[data-type="core/template-part"]').locator('role=button[name="Add block"i]')
49 | );
50 | await expect( templatePart ).toBeVisible();
> 51 | await expect( addBlockButton ).toBeVisible();
| ^
52 | } );
53 |
54 | test( 'can create template parts via the block placeholder choose existing option', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-part.spec.js:51:34
|
Run the tests:
test/e2e/specs/site-editor/template-part.spec.js#L351
2) [chromium] › site-editor/template-part.spec.js:337:2 › Template Part › can not import a widget area into a non-empty template part
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByRole('button', { name: 'Advanced' })
349 | // Go to Block Inspector -> Advanced.
350 | await editor.openDocumentSettingsSidebar();
> 351 | await page.getByRole( 'button', { name: 'Advanced' } ).click();
| ^
352 |
353 | // Verify that the widget area import button is not there.
354 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-part.spec.js:351:58
|
Run the tests:
test/e2e/specs/site-editor/template-part.spec.js#L351
2) [chromium] › site-editor/template-part.spec.js:337:2 › Template Part › can not import a widget area into a non-empty template part
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByRole('button', { name: 'Advanced' })
349 | // Go to Block Inspector -> Advanced.
350 | await editor.openDocumentSettingsSidebar();
> 351 | await page.getByRole( 'button', { name: 'Advanced' } ).click();
| ^
352 |
353 | // Verify that the widget area import button is not there.
354 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-part.spec.js:351:58
|
Run the tests:
test/e2e/specs/site-editor/template-part.spec.js#L351
2) [chromium] › site-editor/template-part.spec.js:337:2 › Template Part › can not import a widget area into a non-empty template part
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByRole('button', { name: 'Advanced' })
349 | // Go to Block Inspector -> Advanced.
350 | await editor.openDocumentSettingsSidebar();
> 351 | await page.getByRole( 'button', { name: 'Advanced' } ).click();
| ^
352 |
353 | // Verify that the widget area import button is not there.
354 | await expect(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-part.spec.js:351:58
|
Run the tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run the tests
2 failed
[chromium] › site-editor/template-part.spec.js:22:2 › Template Part › can create template parts via the block placeholder start blank option
[chromium] › site-editor/template-part.spec.js:337:2 › Template Part › can not import a widget area into a non-empty template part
2 skipped
198 passed (7.8m)
|
Loading