E2E Tests: Add Block Hooks Test Coverage #124747
Annotations
5 errors, 8 warnings, and 8 notices
[chromium] › site-editor/site-editor-url-navigation.spec.js:23:2 › Site editor url navigation › Redirection after template creation:
test/e2e/specs/site-editor/site-editor-url-navigation.spec.js#L44
1) [chromium] › site-editor/site-editor-url-navigation.spec.js:23:2 › Site editor url navigation › Redirection after template creation
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for getByRole('button', { name: 'For a specific item' })
42 | await page
43 | .getByRole( 'button', { name: 'For a specific item' } )
> 44 | .click();
| ^
45 | await page.getByRole( 'option', { name: 'Demo' } ).click();
46 | await expect( page ).toHaveURL(
47 | '/wp-admin/site-editor.php?p=%2Fwp_template%2Femptytheme%2F%2Fsingle-post-demo&canvas=edit'
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js:44:5
|
[chromium] › editor/plugins/block-hooks.spec.js:37:2 › Block Hooks API › should insert hooked block as last child of Post Content block in editor:
test/e2e/specs/editor/plugins/block-hooks.spec.js#L42
1) [chromium] › editor/plugins/block-hooks.spec.js:37:2 › Block Hooks API › should insert hooked block as last child of Post Content block in editor
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 4
+ Received + 1
<!-- wp:paragraph -->
<p>This is a test paragraph.</p>
- <!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} -->
- <p class="hooked-block-last_child-core/post-content">
- This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.
- </p><!-- /wp:paragraph -->
+ <!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} --><p class="hooked-block-last_child-core/post-content">This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.</p><!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} --><p class="hooked-block-last_child-core/post-content">This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.</p><!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
40 | } ) => {
41 | await admin.editPost( post.id );
> 42 | await expect
| ^
43 | .poll( editor.getEditedPostContent )
44 | .toBe(
45 | anchorBlockMarkup +
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/block-hooks.spec.js:42:3
|
[chromium] › editor/plugins/block-hooks.spec.js:37:2 › Block Hooks API › should insert hooked block as last child of Post Content block in editor:
test/e2e/specs/editor/plugins/block-hooks.spec.js#L42
1) [chromium] › editor/plugins/block-hooks.spec.js:37:2 › Block Hooks API › should insert hooked block as last child of Post Content block in editor
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 4
+ Received + 1
<!-- wp:paragraph -->
<p>This is a test paragraph.</p>
- <!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} -->
- <p class="hooked-block-last_child-core/post-content">
- This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.
- </p><!-- /wp:paragraph -->
+ <!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} --><p class="hooked-block-last_child-core/post-content">This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.</p><!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} --><p class="hooked-block-last_child-core/post-content">This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.</p><!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
40 | } ) => {
41 | await admin.editPost( post.id );
> 42 | await expect
| ^
43 | .poll( editor.getEditedPostContent )
44 | .toBe(
45 | anchorBlockMarkup +
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/block-hooks.spec.js:42:3
|
[chromium] › editor/plugins/block-hooks.spec.js:37:2 › Block Hooks API › should insert hooked block as last child of Post Content block in editor:
test/e2e/specs/editor/plugins/block-hooks.spec.js#L42
1) [chromium] › editor/plugins/block-hooks.spec.js:37:2 › Block Hooks API › should insert hooked block as last child of Post Content block in editor
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
- Expected - 4
+ Received + 1
<!-- wp:paragraph -->
<p>This is a test paragraph.</p>
- <!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} -->
- <p class="hooked-block-last_child-core/post-content">
- This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.
- </p><!-- /wp:paragraph -->
+ <!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} --><p class="hooked-block-last_child-core/post-content">This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.</p><!-- /wp:paragraph --><!-- wp:paragraph {"className":"hooked-block-last_child-core/post-content"} --><p class="hooked-block-last_child-core/post-content">This block was inserted by the Block Hooks API in the <code>last_child</code> position next to the <code>core/post-content</code> anchor block.</p><!-- /wp:paragraph -->
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
40 | } ) => {
41 | await admin.editPost( post.id );
> 42 | await expect
| ^
43 | .poll( editor.getEditedPostContent )
44 | .toBe(
45 | anchorBlockMarkup +
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/block-hooks.spec.js:42:3
|
Playwright - 2
Process completed with exit code 1.
|
Playwright - 5
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Playwright - 2
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Playwright - 1
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Playwright - 3
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Playwright - 8
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Playwright - 4
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Playwright - 6
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Playwright - 7
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
🎭 Playwright Run Summary
1 flaky
[chromium] › site-editor/site-editor-url-navigation.spec.js:23:2 › Site editor url navigation › Redirection after template creation
2 skipped
199 passed (6.1m)
|
🎭 Playwright Run Summary
1 skipped
184 passed (7.2m)
|
🎭 Playwright Run Summary
1 failed
[chromium] › editor/plugins/block-hooks.spec.js:37:2 › Block Hooks API › should insert hooked block as last child of Post Content block in editor
1 skipped
211 passed (8.5m)
|
🎭 Playwright Run Summary
207 passed (8.9m)
|
🎭 Playwright Run Summary
1 skipped
224 passed (9.2m)
|
🎭 Playwright Run Summary
3 skipped
188 passed (10.1m)
|
🎭 Playwright Run Summary
1 skipped
174 passed (8.2m)
|
🎭 Playwright Run Summary
1 skipped
206 passed (10.9m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
failures-artifacts
|
4.87 MB |
|
flaky-tests-report
|
989 Bytes |
|