Add stylebook screen for classic themes #121158
Annotations
2 errors, 1 warning, and 1 notice
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/themes.ts#L48
1) [chromium] › site-editor/activate-theme.spec.js:14:2 › Activate theme › activate block theme when live previewing from sidebar save button
Error: apiRequestContext.get: socket hang up
Call log:
- → GET http://localhost:8889/wp-admin/themes.php?action=activate&stylesheet=twentytwentyone&_wpnonce=dc6109873a
- user-agent: Playwright/1.48.1 (x64; ubuntu 22.04) node/20.18 CI/1
- accept: */*
- accept-encoding: gzip,deflate,br
- cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_23778236db82f19306f247e20a353a99=admin%7C1733636511%7CBO6JX0dg0NQebWwSJhAiThQBpJAUr7HQykSwixSAoo0%7Cad9c91949e164a8712534e343de2b6d5c67f04dec39672efac3719e4fcfab8ab; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1733636511%7CBO6JX0dg0NQebWwSJhAiThQBpJAUr7HQykSwixSAoo0%7C5f71878c41c1db78d1698186ed5af9b3e53e5dab2b8c4f751af0efaf590802c3; wp-settings-time-1=1733464095
- ← 302 Found
- date: Fri, 06 Dec 2024 05:48:15 GMT
- server: Apache/2.4.62 (Debian)
- x-powered-by: PHP/8.2.26
- expires: Wed, 11 Jan 1984 05:00:00 GMT
- cache-control: no-cache, must-revalidate, max-age=0, private
- referrer-policy: strict-origin-when-cross-origin
- x-frame-options: SAMEORIGIN
- x-redirect-by: WordPress
- location: http://localhost:8889/wp-admin/themes.php?activated=true
- server-timing: wpTotal;dur=40.21, wpMemoryUsage;dur=4442232, wpDbQueries;dur=49
- content-length: 0
- keep-alive: timeout=5, max=98
- connection: Keep-Alive
- content-type: text/html; charset=UTF-8
- → GET http://localhost:8889/wp-admin/themes.php?activated=true
- user-agent: Playwright/1.48.1 (x64; ubuntu 22.04) node/20.18 CI/1
- accept: */*
- accept-encoding: gzip,deflate,br
- cookie: wordpress_test_cookie=WP%20Cookie%20check; wordpress_23778236db82f19306f247e20a353a99=admin%7C1733636511%7CBO6JX0dg0NQebWwSJhAiThQBpJAUr7HQykSwixSAoo0%7Cad9c91949e164a8712534e343de2b6d5c67f04dec39672efac3719e4fcfab8ab; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1733636511%7CBO6JX0dg0NQebWwSJhAiThQBpJAUr7HQykSwixSAoo0%7C5f71878c41c1db78d1698186ed5af9b3e53e5dab2b8c4f751af0efaf590802c3; wp-settings-time-1=1733464095
at ../../../packages/e2e-test-utils-playwright/src/request-utils/themes.ts:48
46 | THEMES_URL + `?${ activateQuery }`.replace( /&/g, '&' );
47 |
> 48 | response = await this.request.get( activateLink );
| ^
49 |
50 | await response.dispose();
51 | }
at RequestUtils.activateTheme (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/themes.ts:48:32)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/activate-theme.spec.js:12:3
|
Run the tests:
test/e2e/specs/site-editor/navigation.spec.js#L66
2) [chromium] › site-editor/navigation.spec.js:21:2 › Site editor navigation › Can use keyboard to navigate the site editor
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: getByRole('region', { name: 'Editor content' }).getByRole('button', { name: 'Edit' })
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for getByRole('region', { name: 'Editor content' }).getByRole('button', { name: 'Edit' })
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
- locator resolved to <iframe tabindex="0" role="button" aria-label="Edit" name="editor-canvas" aria-disabled="false" class="edit-site-visual-editor__editor-canvas" src="blob:http://localhost:8889/22900bbd-90f4-4968-8d80-73b80b7a15e1"></iframe>
- unexpected value "not focused"
64 | // focusable iframe with role=button.
65 | await pageUtils.pressKeys( 'Tab' );
> 66 | await expect( editorCanvasButton ).toBeFocused();
| ^
67 |
68 | // Tab to the Pages item to move focus back in the UI.
69 | await editorNavigationUtils.tabToLabel( 'Pages' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/navigation.spec.js:66:38
|
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 flaky
[chromium] › site-editor/activate-theme.spec.js:14:2 › Activate theme › activate block theme when live previewing from sidebar save button
[chromium] › site-editor/navigation.spec.js:21:2 › Site editor navigation › Can use keyboard to navigate the site editor
1 skipped
188 passed (9.2m)
|
Loading