Interactivity API: Try this in callbacks for async actions #102534
Annotations
11 errors, 1 warning, and 1 notice
Archive debug artifacts (screenshots, traces)
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L65
1) [chromium] › interactivity/directive-context.spec.ts:55:6 › data-wp-context › changes in inherited properties are reflected (child)
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromChild"
Received: "parent"
63 | );
64 |
> 65 | expect( childContext.prop1 ).toBe( 'modifiedFromChild' );
| ^
66 | expect( childContext.obj.prop4 ).toBe( 'modifiedFromChild' );
67 |
68 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:65:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L65
1) [chromium] › interactivity/directive-context.spec.ts:55:6 › data-wp-context › changes in inherited properties are reflected (child)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromChild"
Received: "parent"
63 | );
64 |
> 65 | expect( childContext.prop1 ).toBe( 'modifiedFromChild' );
| ^
66 | expect( childContext.obj.prop4 ).toBe( 'modifiedFromChild' );
67 |
68 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:65:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L65
1) [chromium] › interactivity/directive-context.spec.ts:55:6 › data-wp-context › changes in inherited properties are reflected (child)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromChild"
Received: "parent"
63 | );
64 |
> 65 | expect( childContext.prop1 ).toBe( 'modifiedFromChild' );
| ^
66 | expect( childContext.obj.prop4 ).toBe( 'modifiedFromChild' );
67 |
68 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:65:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L86
2) [chromium] › interactivity/directive-context.spec.ts:76:6 › data-wp-context › changes in inherited properties are reflected (parent)
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromParent"
Received: "parent"
84 | );
85 |
> 86 | expect( childContext.prop1 ).toBe( 'modifiedFromParent' );
| ^
87 | expect( childContext.obj.prop4 ).toBe( 'modifiedFromParent' );
88 |
89 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:86:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L86
2) [chromium] › interactivity/directive-context.spec.ts:76:6 › data-wp-context › changes in inherited properties are reflected (parent)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromParent"
Received: "parent"
84 | );
85 |
> 86 | expect( childContext.prop1 ).toBe( 'modifiedFromParent' );
| ^
87 | expect( childContext.obj.prop4 ).toBe( 'modifiedFromParent' );
88 |
89 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:86:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L86
2) [chromium] › interactivity/directive-context.spec.ts:76:6 › data-wp-context › changes in inherited properties are reflected (parent)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromParent"
Received: "parent"
84 | );
85 |
> 86 | expect( childContext.prop1 ).toBe( 'modifiedFromParent' );
| ^
87 | expect( childContext.obj.prop4 ).toBe( 'modifiedFromParent' );
88 |
89 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:86:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L107
3) [chromium] › interactivity/directive-context.spec.ts:97:6 › data-wp-context › changes in shadowed properties do not leak (child)
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromChild"
Received: "child"
105 | );
106 |
> 107 | expect( childContext.prop2 ).toBe( 'modifiedFromChild' );
| ^
108 | expect( childContext.obj.prop5 ).toBe( 'modifiedFromChild' );
109 |
110 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:107:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L107
3) [chromium] › interactivity/directive-context.spec.ts:97:6 › data-wp-context › changes in shadowed properties do not leak (child)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromChild"
Received: "child"
105 | );
106 |
> 107 | expect( childContext.prop2 ).toBe( 'modifiedFromChild' );
| ^
108 | expect( childContext.obj.prop5 ).toBe( 'modifiedFromChild' );
109 |
110 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:107:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L107
3) [chromium] › interactivity/directive-context.spec.ts:97:6 › data-wp-context › changes in shadowed properties do not leak (child)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromChild"
Received: "child"
105 | );
106 |
> 107 | expect( childContext.prop2 ).toBe( 'modifiedFromChild' );
| ^
108 | expect( childContext.obj.prop5 ).toBe( 'modifiedFromChild' );
109 |
110 | const parentContext = await parseContent(
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:107:32
|
Run the tests:
test/e2e/specs/interactivity/directive-context.spec.ts#L135
4) [chromium] › interactivity/directive-context.spec.ts:118:6 › data-wp-context › changes in shadowed properties do not leak (parent)
Error: expect(received).toBe(expected) // Object.is equality
Expected: "modifiedFromParent"
Received: "parent"
133 | );
134 |
> 135 | expect( parentContext.prop2 ).toBe( 'modifiedFromParent' );
| ^
136 | expect( parentContext.obj.prop5 ).toBe( 'modifiedFromParent' );
137 | } );
138 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/interactivity/directive-context.spec.ts:135:33
|
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
16 failed
[chromium] › interactivity/directive-context.spec.ts:55:6 › data-wp-context › changes in inherited properties are reflected (child)
[chromium] › interactivity/directive-context.spec.ts:76:6 › data-wp-context › changes in inherited properties are reflected (parent)
[chromium] › interactivity/directive-context.spec.ts:97:6 › data-wp-context › changes in shadowed properties do not leak (child)
[chromium] › interactivity/directive-context.spec.ts:118:6 › data-wp-context › changes in shadowed properties do not leak (parent)
[chromium] › interactivity/directive-context.spec.ts:139:6 › data-wp-context › new inherited properties update child contexts
[chromium] › interactivity/directive-context.spec.ts:233:6 › data-wp-context › should replace values on navigation
[chromium] › interactivity/directive-context.spec.ts:251:6 › data-wp-context › should update values when navigating back or forward
[chromium] › interactivity/directive-context.spec.ts:263:6 › data-wp-context › should inherit values on navigation
[chromium] › interactivity/directive-context.spec.ts:284:6 › data-wp-context › should maintain the same context reference on async actions
[chromium] › interactivity/directive-context.spec.ts:303:6 › data-wp-context › references to objects are kept
[chromium] › interactivity/directive-each.spec.ts:302:6 › data-wp-each › should work on navigation
[chromium] › interactivity/directive-key.spec.ts:21:6 › data-wp-key › should keep the elements when adding items to the start of the array
[chromium] › interactivity/directive-on.spec.ts:31:6 › data-wp-on › callbacks should receive the dispatched event
[chromium] › interactivity/directive-on.spec.ts:39:6 › data-wp-on › callbacks should be able to access the context
[chromium] › interactivity/directive-on.spec.ts:47:6 › data-wp-on › should work with custom events
[chromium] › interactivity/directive-run.spec.ts:36:6 › data-wp-run › should work with client-side navigation
3 skipped
165 passed (10.1m)
|
Loading