Router: Fix addition and removal of empty classnames #120376
Annotations
2 errors and 1 notice
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/themes.ts#L13
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
- 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%7C1732961927%7CdxJTmrVP6gx3cTDfFsH9ftCMx9Hk5v3fznJX3BVx1Ki%7Ca1bc2be86e022a302f2d5defc11255e56dab2b187d99b834ce2e0e1ebf1379f3; wordpress_logged_in_23778236db82f19306f247e20a353a99=admin%7C1732961927%7CdxJTmrVP6gx3cTDfFsH9ftCMx9Hk5v3fznJX3BVx1Ki%7C67d2c62400ab61881e132e29b1128bd794a5bdcf16f8e8136db149344ba9b7f6; wp-settings-time-1=1732789417
at ../../../packages/e2e-test-utils-playwright/src/request-utils/themes.ts:13
11 | themeSlug: string
12 | ): Promise< void > {
> 13 | let response = await this.request.get( THEMES_URL );
| ^
14 | const html = await response.text();
15 | const optionalFolder = '([a-z0-9-]+%2F)?';
16 |
at RequestUtils.activateTheme (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/themes.ts:13:36)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/activate-theme.spec.js:12:22
|
Run the tests:
test/e2e/specs/site-editor/activate-theme.spec.js#L9
1) [chromium] › site-editor/activate-theme.spec.js:14:2 › Activate theme › activate block theme when live previewing from sidebar save button
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByLabel('Live Preview Emptytheme')
7 | test.beforeEach( async ( { admin, page } ) => {
8 | await admin.visitAdminPage( 'themes.php' );
> 9 | await page.getByLabel( 'Live Preview Emptytheme' ).click();
| ^
10 | } );
11 | test.afterEach( async ( { requestUtils } ) => {
12 | await requestUtils.activateTheme( 'twentytwentyone' );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/activate-theme.spec.js:9:54
|
Run the tests
1 flaky
[chromium] › site-editor/activate-theme.spec.js:14:2 › Activate theme › activate block theme when live previewing from sidebar save button
1 skipped
188 passed (9.3m)
|
Loading