Allow template duplication + concept of active templates #123062
Annotations
8 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#L65
2) [chromium] › site-editor/template-activate.spec.js:22:2 › Template Activate › should duplicate and activate
TimeoutError: page.waitForSelector: Timeout 10000ms exceeded.
Call log:
- waiting for locator('.dataviews-view-grid__field-value .is-active') to be visible
63 | await activateButton.click();
64 |
> 65 | await page.waitForSelector(
| ^
66 | '.dataviews-view-grid__field-value .is-active'
67 | );
68 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-activate.spec.js:65:14
|
Run the tests:
test/e2e/specs/site-editor/template-activate.spec.js#L65
2) [chromium] › site-editor/template-activate.spec.js:22:2 › Template Activate › should duplicate and activate
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForSelector: Timeout 10000ms exceeded.
Call log:
- waiting for locator('.dataviews-view-grid__field-value .is-active') to be visible
63 | await activateButton.click();
64 |
> 65 | await page.waitForSelector(
| ^
66 | '.dataviews-view-grid__field-value .is-active'
67 | );
68 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-activate.spec.js:65:14
|
Run the tests:
test/e2e/specs/site-editor/template-activate.spec.js#L65
2) [chromium] › site-editor/template-activate.spec.js:22:2 › Template Activate › should duplicate and activate
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: page.waitForSelector: Timeout 10000ms exceeded.
Call log:
- waiting for locator('.dataviews-view-grid__field-value .is-active') to be visible
63 | await activateButton.click();
64 |
> 65 | await page.waitForSelector(
| ^
66 | '.dataviews-view-grid__field-value .is-active'
67 | );
68 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/template-activate.spec.js:65:14
|
Run the tests:
test/e2e/specs/widgets/editing-widgets.spec.js#L1
3) [chromium] › widgets/editing-widgets.spec.js:44:2 › Widgets screen › Should insert content using the global inserter
{
code: 'internal_server_error',
message: '<p>There has been a critical error on this website.</p><p><a href="https://wordpress.org/documentation/article/faq-troubleshooting/">Learn more about troubleshooting WordPress.</a></p>',
data: {
status: 500,
error: {
type: 1,
message: "Uncaught Error: Failed opening required '/var/www/html/wp-content/themes/twentytwenty/classes/class-twenty-twenty-one-svg-icons.php' (include_path='.:/usr/local/lib/php') in /var/www/html/wp-content/themes/twentytwentyone/functions.php:529\n" +
'Stack trace:\n' +
'#0 /var/www/html/wp-settings.php(688): include()\n' +
"#1 /var/www/html/wp-config.php(148): require_once('/var/www/html/w...')\n" +
"#2 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...')\n" +
"#3 /var/www/html/wp-blog-header.php(13): require_once('/var/www/html/w...')\n" +
"#4 /var/www/html/index.php(17): require('/var/www/html/w...')\n" +
'#5 {main}\n' +
' thrown',
file: '/var/www/html/wp-content/themes/twentytwentyone/functions.php',
line: 529
}
},
additional_errors: []
}
|
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/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
1 flaky
[chromium] › widgets/editing-widgets.spec.js:44:2 › Widgets screen › Should insert content using the global inserter
2 skipped
193 passed (7.7m)
|
Loading