Skip to content

[e2e tests] Improve execution time by disabling the welcomeGuide feature instead of waiting for the modal #3697

[e2e tests] Improve execution time by disabling the welcomeGuide feature instead of waiting for the modal

[e2e tests] Improve execution time by disabling the welcomeGuide feature instead of waiting for the modal #3697

Triggered via pull request February 28, 2024 14:35
Status Failure
Total duration 45m 12s
Artifacts 2

smoke-test-pr-merge.yml

on: pull_request
Run E2E tests
38m 1s
Run E2E tests
Run k6 Performance tests
18s
Run k6 Performance tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors, 9 warnings, and 1 notice
Run k6 Performance tests
Process completed with exit code 1.
[Chrome] › shopper/cart-block-calculate-shipping.spec.js:142:2 › Cart Block Calculate Shipping › create Cart Block page: plugins/woocommerce/tests/e2e-pw/utils/editor.js#L14
1) [Chrome] › shopper/cart-block-calculate-shipping.spec.js:142:2 › Cart Block Calculate Shipping › create Cart Block page Error: page.waitForFunction: Timeout 20000ms exceeded. at ../utils/editor.js:14 12 | const disableWelcomeModal = async ( { page } ) => { 13 | await page.waitForLoadState(); > 14 | await page.waitForFunction( () => window?.wp?.data ); | ^ 15 | 16 | const isWelcomeGuideActive = await page.evaluate( () => 17 | wp.data.select( 'core/edit-post' ).isFeatureActive( 'welcomeGuide' ) at disableWelcomeModal (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce/tests/e2e-pw/utils/editor.js:14:13) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce/tests/e2e-pw/tests/shopper/cart-block-calculate-shipping.spec.js:149:3
[Chrome] › shopper/cart-checkout-block-calculate-tax.spec.js:108:2 › Shopper Cart & Checkout Block Tax Display › can create Cart Block page: plugins/woocommerce/tests/e2e-pw/utils/editor.js#L14
2) [Chrome] › shopper/cart-checkout-block-calculate-tax.spec.js:108:2 › Shopper Cart & Checkout Block Tax Display › can create Cart Block page Error: page.waitForFunction: Timeout 20000ms exceeded. at ../utils/editor.js:14 12 | const disableWelcomeModal = async ( { page } ) => { 13 | await page.waitForLoadState(); > 14 | await page.waitForFunction( () => window?.wp?.data ); | ^ 15 | 16 | const isWelcomeGuideActive = await page.evaluate( () => 17 | wp.data.select( 'core/edit-post' ).isFeatureActive( 'welcomeGuide' ) at disableWelcomeModal (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce/tests/e2e-pw/utils/editor.js:14:13) at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce/tests/e2e-pw/tests/shopper/cart-checkout-block-calculate-tax.spec.js:115:3
🎭 Playwright Run Summary
2 flaky [Chrome] › shopper/cart-block-calculate-shipping.spec.js:142:2 › Cart Block Calculate Shipping › create Cart Block page [Chrome] › shopper/cart-checkout-block-calculate-tax.spec.js:108:2 › Shopper Cart & Checkout Block Tax Display › can create Cart Block page 4 skipped 341 passed (29.1m)
Run API tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598, actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84, google/wireit@f3a3c79c553122e2fe5829eeac7d815326502903, actions/upload-artifact@v3, aws-actions/configure-aws-credentials@v1-node16. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run k6 Performance tests
Failed to restore: Cache service responded with 429
Run k6 Performance tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598, actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Slow Test: plugins/woocommerce/[Chrome] › merchant/create-restricted-coupons.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/create-restricted-coupons.spec.js took 1.3m
Slow Test: plugins/woocommerce/[Chrome] › merchant/order-edit.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/order-edit.spec.js took 59.1s
Slow Test: plugins/woocommerce/[Chrome] › merchant/order-search.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/order-search.spec.js took 57.2s
Slow Test: plugins/woocommerce/[Chrome] › shopper/cart-checkout-block-calculate-tax.spec.js#L1
plugins/woocommerce/[Chrome] › shopper/cart-checkout-block-calculate-tax.spec.js took 56.1s
Slow Test: plugins/woocommerce/[Chrome] › shopper/checkout-block.spec.js#L1
plugins/woocommerce/[Chrome] › shopper/checkout-block.spec.js took 52.0s
Run E2E tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598, actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84, google/wireit@f3a3c79c553122e2fe5829eeac7d815326502903, actions/upload-artifact@v3, aws-actions/configure-aws-credentials@v1-node16. 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
api-pr-merge-45132-run-3697 Expired
5.46 MB
e2e-pr-merge-45132-run-3697 Expired
29.9 MB