Don't render undefined classname in useBlockProps hook (#56923) #90429
Annotations
10 errors and 1 notice
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › interactivity/directives-class.spec.ts:21:6 › data-wp-class › remove class if callback returns falsy value
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-class.spec.ts:9:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › interactivity/directives-class.spec.ts:21:6 › data-wp-class › remove class if callback returns falsy value
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-class.spec.ts:9:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › interactivity/directives-class.spec.ts:21:6 › data-wp-class › remove class if callback returns falsy value
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-class.spec.ts:9:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
2) [chromium] › interactivity/directives-context.spec.ts:28:6 › data-wp-context › is correctly initialized
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-context.spec.ts:16:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
2) [chromium] › interactivity/directives-context.spec.ts:28:6 › data-wp-context › is correctly initialized
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-context.spec.ts:16:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
2) [chromium] › interactivity/directives-context.spec.ts:28:6 › data-wp-context › is correctly initialized
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-context.spec.ts:16:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
3) [chromium] › interactivity/directives-style.spec.ts:21:6 › data-wp-style › dont change style if callback returns same value on hydration
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-style.spec.ts:9:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
3) [chromium] › interactivity/directives-style.spec.ts:21:6 › data-wp-style › dont change style if callback returns same value on hydration
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-style.spec.ts:9:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
3) [chromium] › interactivity/directives-style.spec.ts:21:6 › data-wp-style › dont change style if callback returns same value on hydration
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directives-style.spec.ts:9:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
4) [chromium] › interactivity/negation-operator.spec.ts:21:6 › negation-operator › add hidden attribute when !state.active
SyntaxError: Unexpected token < in JSON at position 0
at ../../../packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104
102 | },
103 | } );
> 104 | const json: RestResponse = await response.json();
| ^
105 |
106 | if ( ! response.ok() ) {
107 | throw json;
at RequestUtils.rest (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/rest.ts:104:30)
at RequestUtils.createPost (/home/runner/work/gutenberg/gutenberg/packages/e2e-test-utils-playwright/src/request-utils/posts.ts:64:15)
at InteractivityUtils.addPostWithBlock (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/fixtures/interactivity-utils.ts:53:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/negation-operator.spec.ts:9:3
|
Run the tests
9 failed
[chromium] › interactivity/directives-class.spec.ts:21:6 › data-wp-class › remove class if callback returns falsy value
[chromium] › interactivity/directives-context.spec.ts:28:6 › data-wp-context › is correctly initialized
[chromium] › interactivity/directives-style.spec.ts:21:6 › data-wp-style › dont change style if callback returns same value on hydration
[chromium] › interactivity/negation-operator.spec.ts:21:6 › negation-operator › add hidden attribute when !state.active
[chromium] › interactivity/store-tag.spec.ts:26:6 › store tag › hydrates when it is well defined
[webkit] › editor/blocks/navigation-frontend-interactivity.spec.js:91:3 › Navigation block - Frontend interactivity › Overlay menu › Overlay menu interactions in Safari (@WebKit)
[webkit] › editor/blocks/navigation-frontend-interactivity.spec.js:260:3 › Navigation block - Frontend interactivity › Submenu mouse and keyboard interactions › Submenu interactions on Safari (@WebKit)
[webkit] › editor/blocks/navigation-frontend-interactivity.spec.js:368:3 › Navigation block - Frontend interactivity › Submenus (Arrow setting) (@Firefox, @WebKit) › submenu click on the arrow interactions
[webkit] › editor/blocks/navigation-frontend-interactivity.spec.js:458:3 › Navigation block - Frontend interactivity › Page list block (@Firefox, @WebKit) › page-list submenu user interactions
31 skipped
105 passed (10.5m)
|
The logs for this run have expired and are no longer available.
Loading