Allow template duplication + concept of active templates #123020
Annotations
10 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/site-editor/site-editor-url-navigation.spec.js#L46
1) [chromium] › site-editor/site-editor-url-navigation.spec.js:23:2 › Site editor url navigation › Redirection after template creation
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /wp-admin\/site-editor\.php\?postId=\d+&postType=wp_template&canvas=edit/
Received string: "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F32&canvas=edit"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Ftemplate"
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Ftemplate"
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F32&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F32&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F32&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F32&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F32&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F32&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F32&canvas=edit"
44 | .click();
45 | await page.getByRole( 'option', { name: 'Demo' } ).click();
> 46 | await expect( page ).toHaveURL(
| ^
47 | /wp-admin\/site-editor\.php\?postId=\d+&postType=wp_template&canvas=edit/
48 | );
49 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js:46:24
|
Run the tests:
test/e2e/specs/site-editor/site-editor-url-navigation.spec.js#L46
1) [chromium] › site-editor/site-editor-url-navigation.spec.js:23:2 › Site editor url navigation › Redirection after template creation
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /wp-admin\/site-editor\.php\?postId=\d+&postType=wp_template&canvas=edit/
Received string: "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F35&canvas=edit"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Ftemplate"
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Ftemplate"
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F35&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F35&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F35&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F35&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F35&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F35&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F35&canvas=edit"
44 | .click();
45 | await page.getByRole( 'option', { name: 'Demo' } ).click();
> 46 | await expect( page ).toHaveURL(
| ^
47 | /wp-admin\/site-editor\.php\?postId=\d+&postType=wp_template&canvas=edit/
48 | );
49 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js:46:24
|
Run the tests:
test/e2e/specs/site-editor/site-editor-url-navigation.spec.js#L46
1) [chromium] › site-editor/site-editor-url-navigation.spec.js:23:2 › Site editor url navigation › Redirection after template creation
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveURL(expected)
Locator: locator(':root')
Expected pattern: /wp-admin\/site-editor\.php\?postId=\d+&postType=wp_template&canvas=edit/
Received string: "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F38&canvas=edit"
Call log:
- expect.toHaveURL with timeout 5000ms
- waiting for locator(':root')
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Ftemplate"
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Ftemplate"
- locator resolved to <html lang="en-US" class="wp-toolbar">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F38&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F38&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F38&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F38&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F38&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F38&canvas=edit"
- locator resolved to <html lang="en-US" class="wp-toolbar interface-interface-skeleton__html-container">…</html>
- unexpected value "http://localhost:8889/wp-admin/site-editor.php?p=%2Fwp_template%2F38&canvas=edit"
44 | .click();
45 | await page.getByRole( 'option', { name: 'Demo' } ).click();
> 46 | await expect( page ).toHaveURL(
| ^
47 | /wp-admin\/site-editor\.php\?postId=\d+&postType=wp_template&canvas=edit/
48 | );
49 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js:46:24
|
Run the tests:
test/e2e/specs/site-editor/template-activate.spec.js#L69
2) [chromium] › site-editor/template-activate.spec.js:22:2 › Template Activate › should duplicate and activate
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Index (Copy)' }) resolved to 2 elements:
1) <div tabindex="0" role="button" aria-labelledby="dataviews-view-grid__title-field-0" class="dataviews-view-grid__media dataviews-view-grid__media--clickable">…</div> aka getByLabel('Index (Copy)', { exact: true })
2) <div tabindex="0" role="button" id="dataviews-view-grid__title-field-0" class="dataviews-view-grid__title-field dataviews-title-field dataviews-view-grid__title-field dataviews-title-field--clickable">…</div> aka locator('#dataviews-view-grid__title-field-0')
Call log:
- waiting for getByRole('button', { name: 'Index (Copy)' })
67 | );
68 |
> 69 | await page.getByRole( 'button', { name: 'Index (Copy)' } ).click();
| ^
70 |
71 | await expect( editor.canvas.getByText( 'gutenberg' ) ).toBeVisible();
72 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-activate.spec.js:69:62
|
Run the tests:
test/e2e/specs/site-editor/template-activate.spec.js#L69
2) [chromium] › site-editor/template-activate.spec.js:22:2 › Template Activate › should duplicate and activate
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Index (Copy)' }) resolved to 2 elements:
1) <div tabindex="0" role="button" aria-labelledby="dataviews-view-grid__title-field-0" class="dataviews-view-grid__media dataviews-view-grid__media--clickable">…</div> aka getByLabel('Index (Copy)', { exact: true })
2) <div tabindex="0" role="button" id="dataviews-view-grid__title-field-0" class="dataviews-view-grid__title-field dataviews-title-field dataviews-view-grid__title-field dataviews-title-field--clickable">…</div> aka locator('#dataviews-view-grid__title-field-0')
Call log:
- waiting for getByRole('button', { name: 'Index (Copy)' })
67 | );
68 |
> 69 | await page.getByRole( 'button', { name: 'Index (Copy)' } ).click();
| ^
70 |
71 | await expect( editor.canvas.getByText( 'gutenberg' ) ).toBeVisible();
72 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-activate.spec.js:69:62
|
Run the tests:
test/e2e/specs/site-editor/template-activate.spec.js#L69
2) [chromium] › site-editor/template-activate.spec.js:22:2 › Template Activate › should duplicate and activate
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Index (Copy)' }) resolved to 2 elements:
1) <div tabindex="0" role="button" aria-labelledby="dataviews-view-grid__title-field-0" class="dataviews-view-grid__media dataviews-view-grid__media--clickable">…</div> aka getByLabel('Index (Copy)', { exact: true })
2) <div tabindex="0" role="button" id="dataviews-view-grid__title-field-0" class="dataviews-view-grid__title-field dataviews-title-field dataviews-view-grid__title-field dataviews-title-field--clickable">…</div> aka locator('#dataviews-view-grid__title-field-0')
Call log:
- waiting for getByRole('button', { name: 'Index (Copy)' })
67 | );
68 |
> 69 | await page.getByRole( 'button', { name: 'Index (Copy)' } ).click();
| ^
70 |
71 | await expect( editor.canvas.getByText( 'gutenberg' ) ).toBeVisible();
72 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-activate.spec.js:69:62
|
Run the tests:
packages/e2e-test-utils-playwright/src/editor/site-editor.ts#L45
3) [chromium] › site-editor/template-registration.spec.js:29:2 › Block template registration › templates can be registered and edited
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByRole('region', { name: /(Editor publish|Save panel)/ }).getByRole('button', { name: 'Save', exact: true })
at ../../../packages/e2e-test-utils-playwright/src/editor/site-editor.ts:45
43 | } )
44 | .getByRole( 'button', { name: 'Save', exact: true } )
> 45 | .click();
| ^
46 | }
47 | // The text in the notice can be different based on the edited entity, whether
48 | // we are saving multiple entities and whether we publish or update. So for now,
at Editor.saveSiteEditorEntities (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/site-editor.ts:45:5)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-registration.spec.js:65:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/editor/site-editor.ts#L45
3) [chromium] › site-editor/template-registration.spec.js:29:2 › Block template registration › templates can be registered and edited
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByRole('region', { name: /(Editor publish|Save panel)/ }).getByRole('button', { name: 'Save', exact: true })
at ../../../packages/e2e-test-utils-playwright/src/editor/site-editor.ts:45
43 | } )
44 | .getByRole( 'button', { name: 'Save', exact: true } )
> 45 | .click();
| ^
46 | }
47 | // The text in the notice can be different based on the edited entity, whether
48 | // we are saving multiple entities and whether we publish or update. So for now,
at Editor.saveSiteEditorEntities (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/site-editor.ts:45:5)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-registration.spec.js:65:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/editor/site-editor.ts#L45
3) [chromium] › site-editor/template-registration.spec.js:29:2 › Block template registration › templates can be registered and edited
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByRole('region', { name: /(Editor publish|Save panel)/ }).getByRole('button', { name: 'Save', exact: true })
at ../../../packages/e2e-test-utils-playwright/src/editor/site-editor.ts:45
43 | } )
44 | .getByRole( 'button', { name: 'Save', exact: true } )
> 45 | .click();
| ^
46 | }
47 | // The text in the notice can be different based on the edited entity, whether
48 | // we are saving multiple entities and whether we publish or update. So for now,
at Editor.saveSiteEditorEntities (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/site-editor.ts:45:5)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-registration.spec.js:65:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/editor/site-editor.ts#L45
4) [chromium] › site-editor/template-registration.spec.js:170:2 › Block template registration › templates can be deleted if the registered plugin is deactivated
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByRole('region', { name: /(Editor publish|Save panel)/ }).getByRole('button', { name: 'Save', exact: true })
at ../../../packages/e2e-test-utils-playwright/src/editor/site-editor.ts:45
43 | } )
44 | .getByRole( 'button', { name: 'Save', exact: true } )
> 45 | .click();
| ^
46 | }
47 | // The text in the notice can be different based on the edited entity, whether
48 | // we are saving multiple entities and whether we publish or update. So for now,
at Editor.saveSiteEditorEntities (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/editor/site-editor.ts:45:5)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-registration.spec.js:193:3
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run the tests
4 failed
[chromium] › site-editor/site-editor-url-navigation.spec.js:23:2 › Site editor url navigation › Redirection after template creation
[chromium] › site-editor/template-activate.spec.js:22:2 › Template Activate › should duplicate and activate
[chromium] › site-editor/template-registration.spec.js:29:2 › Block template registration › templates can be registered and edited
[chromium] › site-editor/template-registration.spec.js:170:2 › Block template registration › templates can be deleted if the registered plugin is deactivated
2 skipped
192 passed (8.4m)
|
Loading