Skip to content

Prevent warning if there was no post ID available in some product elements #1890

Prevent warning if there was no post ID available in some product elements

Prevent warning if there was no post ID available in some product elements #1890

Re-run triggered March 20, 2024 07:18
Status Success
Total duration 9m 26s
Artifacts 1

blocks-playwright.yml

on: pull_request
Matrix: e2e
Fit to window
Zoom out
Zoom in

Annotations

5 errors, 51 warnings, and 15 notices
[blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Mini-Cart template › can be modified and reverted: plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts#L415
1) [blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Mini-Cart template › can be modified and reverted TimeoutError: locator.waitFor: Timeout 10000ms exceeded. =========================== logs =========================== waiting for getByRole('heading', { name: 'Editing template part: Mini-Cart' }) to be visible ============================================================ at ../utils/editor/editor-utils.page.ts:415 413 | name: `Editing ${ templateTypeName }: ${ templateName }`, 414 | } ) > 415 | .waitFor(); | ^ 416 | } 417 | 418 | async revertTemplateCreation( templateName: string ) { at EditorUtils.visitTemplateEditor (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts:415:5) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts:29:4
[blockThemeWithGlobalSideEffects] › price-filter/price-filter.block_theme.side_effects.spec.ts:138:6 › woocommerce/price-filter Block - with PHP classic template › should show all products: plugins/woocommerce-blocks/tests/e2e/tests/price-filter/price-filter.block_theme.side_effects.spec.ts#L150
1) [blockThemeWithGlobalSideEffects] › price-filter/price-filter.block_theme.side_effects.spec.ts:138:6 › woocommerce/price-filter Block - with PHP classic template › should show all products Error: expect(received).toHaveLength(expected) Expected length: 16 Received length: 0 Received array: [] 148 | .all(); 149 | > 150 | expect( products ).toHaveLength( 16 ); | ^ 151 | } ); 152 | 153 | // eslint-disable-next-line playwright/no-skipped-test at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/price-filter/price-filter.block_theme.side_effects.spec.ts:150:22
[blockThemeWithGlobalSideEffects] › price-filter/price-filter.block_theme.side_effects.spec.ts:138:6 › woocommerce/price-filter Block - with PHP classic template › should show all products: plugins/woocommerce-blocks/tests/e2e/tests/price-filter/price-filter.block_theme.side_effects.spec.ts#L150
1) [blockThemeWithGlobalSideEffects] › price-filter/price-filter.block_theme.side_effects.spec.ts:138:6 › woocommerce/price-filter Block - with PHP classic template › should show all products Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toHaveLength(expected) Expected length: 16 Received length: 1 Received array: [{"_frame": {"_guid": "frame@2939788ee24adb604d19828a0ab59e0b", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=0"}] 148 | .all(); 149 | > 150 | expect( products ).toHaveLength( 16 ); | ^ 151 | } ); 152 | 153 | // eslint-disable-next-line playwright/no-skipped-test at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/price-filter/price-filter.block_theme.side_effects.spec.ts:150:22
[blockThemeWithTemplates] › templates/template-customization.block_theme_with_templates.spec.ts:74:8 › Products by Tag template › theme template has priority over user-modified Product Catalog template: plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts#L415
1) [blockThemeWithTemplates] › templates/template-customization.block_theme_with_templates.spec.ts:74:8 › Products by Tag template › theme template has priority over user-modified Product Catalog template TimeoutError: locator.waitFor: Timeout 10000ms exceeded. =========================== logs =========================== waiting for getByRole('heading', { name: 'Editing template: Product Catalog' }) to be visible ============================================================ at ../utils/editor/editor-utils.page.ts:415 413 | name: `Editing ${ templateTypeName }: ${ templateName }`, 414 | } ) > 415 | .waitFor(); | ^ 416 | } 417 | 418 | async revertTemplateCreation( templateName: string ) { at EditorUtils.visitTemplateEditor (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts:415:5) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme_with_templates.spec.ts:81:5
[blockThemeWithGlobalSideEffects] › checkout/additional-fields.shopper.block_theme.side_effects.spec.ts:236:3 › Shopper → Additional Checkout Fields › Logged in shopper › Shopper can change the values of fields multiple times and place the order: plugins/woocommerce-blocks/tests/e2e/tests/checkout/additional-fields.shopper.block_theme.side_effects.spec.ts#L283
1) [blockThemeWithGlobalSideEffects] › checkout/additional-fields.shopper.block_theme.side_effects.spec.ts:236:3 › Shopper → Additional Checkout Fields › Logged in shopper › Shopper can change the values of fields multiple times and place the order TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response" 281 | .getByLabel( 'How wide is your road?' ) 282 | .fill( 'narrow' ); > 283 | await checkoutPageObject.page.waitForResponse( ( response ) => { | ^ 284 | return response.url().indexOf( 'wc/store/v1/batch' ) !== -1; 285 | } ); 286 | at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/checkout/additional-fields.shopper.block_theme.side_effects.spec.ts:283:34
🎭 Playwright Run Summary
31 passed (4.0m)
🎭 Playwright Run Summary
10 passed (1.1m)
🎭 Playwright Run Summary
37 passed (2.1m)
🎭 Playwright Run Summary
6 passed (1.3m)
🎭 Playwright Run Summary
2 skipped 40 passed (5.8m)
🎭 Playwright Run Summary
1 flaky [blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Mini-Cart template › can be modified and reverted 27 passed (5.5m)
🎭 Playwright Run Summary
1 flaky [blockThemeWithGlobalSideEffects] › price-filter/price-filter.block_theme.side_effects.spec.ts:138:6 › woocommerce/price-filter Block - with PHP classic template › should show all products 1 skipped 25 passed (4.7m)
🎭 Playwright Run Summary
2 passed (18.4s)
🎭 Playwright Run Summary
3 passed (20.5s)
🎭 Playwright Run Summary
3 passed (16.2s)
🎭 Playwright Run Summary
4 skipped 25 passed (3.5m)
🎭 Playwright Run Summary
8 skipped 29 passed (5.2m)
🎭 Playwright Run Summary
1 flaky [blockThemeWithTemplates] › templates/template-customization.block_theme_with_templates.spec.ts:74:8 › Products by Tag template › theme template has priority over user-modified Product Catalog template 14 passed (3.2m)
🎭 Playwright Run Summary
17 passed (5.0m)
🎭 Playwright Run Summary
1 flaky [blockThemeWithGlobalSideEffects] › checkout/additional-fields.shopper.block_theme.side_effects.spec.ts:236:3 › Shopper → Additional Checkout Fields › Logged in shopper › Shopper can change the values of fields multiple times and place the order 28 passed (4.2m)
Default (Block) Theme [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Default (Block) Theme [4/5]
Failed to restore: Cache service responded with 429
Default (Block) Theme [4/5]
Failed to restore: Cache service responded with 429
Default (Block) Theme [4/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Default (Block) Theme [2/5]
Failed to restore: Cache service responded with 429
Default (Block) Theme [2/5]
Failed to restore: Cache service responded with 429
Default (Block) Theme [2/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Classic Theme [1/5]
Failed to restore: Cache service responded with 429
Classic Theme [1/5]
Failed to restore: Cache service responded with 429
Classic Theme [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Default (Block) Theme [3/5]
Failed to restore: Cache service responded with 429
Default (Block) Theme [3/5]
Failed to restore: Cache service responded with 429
Default (Block) Theme [3/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Default (Block) Theme [5/5]
Failed to restore: Cache service responded with 429
Default (Block) Theme [5/5]
Failed to restore: Cache service responded with 429
Default (Block) Theme [5/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Side Effects [3/5]
Failed to restore: Cache service responded with 429
Classic Theme [2/5]
Failed to restore: Cache service responded with 429
Side Effects [3/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Classic Theme [2/5]
Failed to restore: Cache service responded with 429
Classic Theme [2/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Classic Theme [3/5]
Failed to restore: Cache service responded with 429
Classic Theme [3/5]
Failed to restore: Cache service responded with 429
Classic Theme [3/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Classic Theme [4/5]
Failed to restore: Cache service responded with 429
Classic Theme [4/5]
Failed to restore: Cache service responded with 429
Classic Theme [5/5]
Failed to restore: Cache service responded with 429
Classic Theme [4/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Classic Theme [5/5]
Failed to restore: Cache service responded with 429
Classic Theme [5/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Side Effects [2/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Side Effects [4/5]
Failed to restore: Cache service responded with 429
Side Effects [4/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Block Theme With Templates [3/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [3/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [3/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Block Theme With Templates [2/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [2/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [2/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Block Theme With Templates [1/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [1/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Side Effects [5/5]
Failed to restore: Cache service responded with 429
Side Effects [5/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Block Theme With Templates [5/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [5/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [5/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Block Theme With Templates [4/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [4/5]
Failed to restore: Cache service responded with 429
Block Theme With Templates [4/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Side Effects [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
playwright-report-Side Effects
29 MB