Interactivity API: Server Directive Processor for data-wp-each
#95164
Annotations
4 errors, 1 warning, and 1 notice
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › interactivity/directive-each.spec.ts:21:6 › data-wp-each › should use `item` as the defaul item name in the context
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
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:58:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-each.spec.ts:9:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › interactivity/directive-each.spec.ts:21:6 › data-wp-each › should use `item` as the defaul item name in the context
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
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:58:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-each.spec.ts:9:3
|
Run the tests:
packages/e2e-test-utils-playwright/src/request-utils/rest.ts#L104
1) [chromium] › interactivity/directive-each.spec.ts:21:6 › data-wp-each › should use `item` as the defaul item name in the context
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
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:58:20)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-each.spec.ts:9:3
|
Run the tests
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run the tests
1 failed
[chromium] › interactivity/directive-each.spec.ts:21:6 › data-wp-each › should use `item` as the defaul item name in the context
17 skipped
160 passed (7.3m)
|
The logs for this run have expired and are no longer available.
Loading