Skip to content

[Enhancement]: Optimise flow when using the Cart block and shipping calculations are enabled #4086

[Enhancement]: Optimise flow when using the Cart block and shipping calculations are enabled

[Enhancement]: Optimise flow when using the Cart block and shipping calculations are enabled #4086

Status Success
Total duration 13m 53s
Artifacts 2

blocks-playwright.yml

on: pull_request
Matrix: blocks-playwright-tests
Merge Artifacts
15s
Merge Artifacts
Create GitHub issues for flaky tests
4m 0s
Create GitHub issues for flaky tests
Fit to window
Zoom out
Zoom in

Annotations

7 errors, 15 warnings, and 10 notices
[chromium] › product-collection/product-collection.block_theme.spec.ts:1167:3 › Product Collection › Product Collection should be visible after Refresh › Product Collection should be visible after Refresh in a Template: plugins/woocommerce-blocks/tests/e2e/tests/product-collection/product-collection.page.ts#L215
1) [chromium] › product-collection/product-collection.block_theme.spec.ts:1167:3 › Product Collection › Product Collection should be visible after Refresh › Product Collection should be visible after Refresh in a Template Error: locator.click: Timeout 10000ms exceeded. Call log: - waiting for getByRole('region', { name: 'Save panel' }).getByRole('button', { name: 'Save', exact: true }) - locator resolved to <button type="button" data-wp-c16t="true" data-wp-compon…>Save</button> - attempting click action - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at product-collection/product-collection.page.ts:215 213 | await this.chooseCollectionInTemplate( collection ); 214 | await this.refreshLocators( 'editor' ); > 215 | await this.editor.saveSiteEditorEntities(); | ^ 216 | } 217 | 218 | async goToProductCatalogFrontend() { at Editor.saveSiteEditorEntities (/home/runner/work/woocommerce/woocommerce/node_modules/.pnpm/@WordPress+e2e-test-utils-playwright@0.19.2_@playwright+test@1.40.1_encoding@0.1.13_typescript@5.3.2/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/site-editor.ts:25:4) at ProductCollectionPage.replaceProductsWithProductCollectionInTemplate (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/product-collection/product-collection.page.ts:215:3) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/product-collection/product-collection.block_theme.spec.ts:1172:4
[chromium] › templates/template-customization.block_theme.spec.ts:26:8 › Template customization › Product Search Results template › can be modified and reverted: plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts#L43
1) [chromium] › templates/template-customization.block_theme.spec.ts:26:8 › Template customization › Product Search Results template › can be modified and reverted Error: locator.click: Timeout 10000ms exceeded. Call log: - waiting for getByRole('region', { name: 'Save panel' }).getByRole('button', { name: 'Save', exact: true }) 41 | attributes: { content: userText }, 42 | } ); > 43 | await editor.saveSiteEditorEntities(); | ^ 44 | // Verify template name didn't change. 45 | // See: https://github.com/woocommerce/woocommerce/issues/42221 46 | await expect( at Editor.saveSiteEditorEntities (/home/runner/work/woocommerce/woocommerce/node_modules/.pnpm/@WordPress+e2e-test-utils-playwright@0.19.2_@playwright+test@1.40.1_encoding@0.1.13_typescript@5.3.2/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/site-editor.ts:25:4) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts:43:5
[chromium] › templates/template-customization.block_theme.spec.ts:26:8 › Template customization › Page: Cart template › can be modified and reverted: plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts#L43
2) [chromium] › templates/template-customization.block_theme.spec.ts:26:8 › Template customization › Page: Cart template › can be modified and reverted Error: locator.click: Timeout 10000ms exceeded. Call log: - waiting for getByRole('region', { name: 'Save panel' }).getByRole('button', { name: 'Save', exact: true }) - locator resolved to <button type="button" data-wp-c16t="true" data-wp-compon…>Save</button> - attempting click action - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is not visible - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying 41 | attributes: { content: userText }, 42 | } ); > 43 | await editor.saveSiteEditorEntities(); | ^ 44 | // Verify template name didn't change. 45 | // See: https://github.com/woocommerce/woocommerce/issues/42221 46 | await expect( at Editor.saveSiteEditorEntities (/home/runner/work/woocommerce/woocommerce/node_modules/.pnpm/@WordPress+e2e-test-utils-playwright@0.19.2_@playwright+test@1.40.1_encoding@0.1.13_typescript@5.3.2/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/site-editor.ts:25:4) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts:43:5
[chromium] › templates/template-customization.block_theme.spec.ts:98:8 › Template customization › Products by Attribute template › user-modified Products by Attribute template based on the theme template has priority over the user-modified template based on the default WooCommerce template: plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts#L116
3) [chromium] › templates/template-customization.block_theme.spec.ts:98:8 › Template customization › Products by Attribute template › user-modified Products by Attribute template based on the theme template has priority over the user-modified template based on the default WooCommerce template Error: locator.click: Timeout 10000ms exceeded. Call log: - waiting for getByRole('region', { name: 'Save panel' }).getByRole('button', { name: 'Save', exact: true }) 114 | attributes: { content: woocommerceTemplateUserText }, 115 | } ); > 116 | await editor.saveSiteEditorEntities(); | ^ 117 | 118 | await requestUtils.activateTheme( 119 | BLOCK_THEME_WITH_TEMPLATES_SLUG at Editor.saveSiteEditorEntities (/home/runner/work/woocommerce/woocommerce/node_modules/.pnpm/@WordPress+e2e-test-utils-playwright@0.19.2_@playwright+test@1.40.1_encoding@0.1.13_typescript@5.3.2/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/site-editor.ts:25:4) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts:116:5
[chromium] › templates/template-customization.block_theme.spec.ts:98:8 › Template customization › Products by Category template › user-modified Products by Category template based on the theme template has priority over the user-modified template based on the default WooCommerce template: plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts#L116
4) [chromium] › templates/template-customization.block_theme.spec.ts:98:8 › Template customization › Products by Category template › user-modified Products by Category template based on the theme template has priority over the user-modified template based on the default WooCommerce template Error: locator.click: Timeout 10000ms exceeded. Call log: - waiting for getByRole('region', { name: 'Save panel' }).getByRole('button', { name: 'Save', exact: true }) 114 | attributes: { content: woocommerceTemplateUserText }, 115 | } ); > 116 | await editor.saveSiteEditorEntities(); | ^ 117 | 118 | await requestUtils.activateTheme( 119 | BLOCK_THEME_WITH_TEMPLATES_SLUG at Editor.saveSiteEditorEntities (/home/runner/work/woocommerce/woocommerce/node_modules/.pnpm/@WordPress+e2e-test-utils-playwright@0.19.2_@playwright+test@1.40.1_encoding@0.1.13_typescript@5.3.2/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/site-editor.ts:25:4) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts:116:5
[chromium] › stock-filter/stock-filter.block_theme.spec.ts:136:2 › Filter by Stock Block - with PHP classic template › should show all products: plugins/woocommerce-blocks/tests/e2e/tests/stock-filter/stock-filter.block_theme.spec.ts#L132
1) [chromium] › stock-filter/stock-filter.block_theme.spec.ts:136:2 › Filter by Stock Block - with PHP classic template › should show all products Error: locator.click: Timeout 10000ms exceeded. Call log: - waiting for getByRole('region', { name: 'Save panel' }).getByRole('button', { name: 'Save', exact: true }) - locator resolved to <button type="button" data-wp-c16t="true" data-wp-compon…>Save</button> - attempting click action - waiting for element to be visible, enabled and stable - element is not stable - waiting... - element was detached from the DOM, retrying 130 | }, 131 | } ); > 132 | await editor.saveSiteEditorEntities(); | ^ 133 | await page.goto( '/shop' ); 134 | } ); 135 | at Editor.saveSiteEditorEntities (/home/runner/work/woocommerce/woocommerce/node_modules/.pnpm/@WordPress+e2e-test-utils-playwright@0.19.2_@playwright+test@1.40.1_encoding@0.1.13_typescript@5.3.2/node_modules/@wordpress/e2e-test-utils-playwright/src/editor/site-editor.ts:25:4) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/stock-filter/stock-filter.block_theme.spec.ts:132:3
Create GitHub issues for flaky tests
HttpError: Resource not accessible by integration
🎭 Playwright Run Summary
5 skipped 34 passed (3.3m)
🎭 Playwright Run Summary
41 passed (3.5m)
🎭 Playwright Run Summary
49 passed (5.6m)
🎭 Playwright Run Summary
1 flaky [chromium] › product-collection/product-collection.block_theme.spec.ts:1167:3 › Product Collection › Product Collection should be visible after Refresh › Product Collection should be visible after Refresh in a Template 2 skipped 46 passed (8.4m)
🎭 Playwright Run Summary
40 passed (6.6m)
🎭 Playwright Run Summary
8 skipped 16 passed (2.3m)
🎭 Playwright Run Summary
4 flaky [chromium] › templates/template-customization.block_theme.spec.ts:26:8 › Template customization › Product Search Results template › can be modified and reverted [chromium] › templates/template-customization.block_theme.spec.ts:26:8 › Template customization › Page: Cart template › can be modified and reverted [chromium] › templates/template-customization.block_theme.spec.ts:98:8 › Template customization › Products by Attribute template › user-modified Products by Attribute template based on the theme template has priority over the user-modified template based on the default WooCommerce template [chromium] › templates/template-customization.block_theme.spec.ts:98:8 › Template customization › Products by Category template › user-modified Products by Category template based on the theme template has priority over the user-modified template based on the default WooCommerce template 36 passed (8.4m)
🎭 Playwright Run Summary
1 flaky [chromium] › stock-filter/stock-filter.block_theme.spec.ts:136:2 › Filter by Stock Block - with PHP classic template › should show all products 37 passed (4.3m)
🎭 Playwright Run Summary
41 passed (5.0m)
🎭 Playwright Run Summary
44 passed (5.0m)
Shard 3 of 10
Failed to restore: Cache service responded with 429
Shard 3 of 10
Failed to restore: Cache service responded with 429
Shard 6 of 10
Failed to restore: Cache service responded with 429
Shard 5 of 10
Failed to restore: Cache service responded with 429
Shard 6 of 10
Failed to restore: Cache service responded with 429
Shard 5 of 10
Failed to restore: Cache service responded with 429
Shard 2 of 10
Failed to restore: Cache service responded with 429
Shard 2 of 10
Failed to restore: Cache service responded with 429
Shard 7 of 10
Failed to restore: Cache service responded with 429
Shard 7 of 10
Failed to restore: Cache service responded with 429
Shard 10 of 10
Failed to restore: Cache service responded with 429
Shard 10 of 10
Failed to restore: Cache service responded with 429
Shard 9 of 10
Failed to restore: Cache service responded with 429
Shard 9 of 10
Failed to restore: Cache service responded with 429
Create GitHub issues for flaky tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: ./packages/report-flaky-tests. 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
failures-artifacts
19.3 MB
flaky-tests-report
6.64 KB