Remove accidental count call within an is_array check #27857
pr-build-and-e2e-tests.yml
on: pull_request
Runs API tests.
5m 22s
Matrix: Runs E2E tests in matrix.
Runs k6 Performance tests
6m 10s
Publish test reports
3s
Post test results
15s
Annotations
6 errors, 22 warnings, and 5 notices
[Chrome] › customize-store/loading-screen/loading-screen.spec.js:24:2 › Assembler - Loading Page › should display loading screen and steps on first run:
plugins/woocommerce/tests/e2e-pw/tests/customize-store/loading-screen/loading-screen.spec.js#L39
1) [Chrome] › customize-store/loading-screen/loading-screen.spec.js:24:2 › Assembler - Loading Page › should display loading screen and steps on first run
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: getByText('Turning on the lights')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByText('Turning on the lights')
37 | page.locator( '.woocommerce-onboarding-loader' )
38 | ).toBeVisible();
> 39 | await expect( page.getByText( step ) ).toBeVisible();
| ^
40 | await expect( page.getByAltText( step ) ).toBeVisible();
41 | }
42 |
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce/tests/e2e-pw/tests/customize-store/loading-screen/loading-screen.spec.js:39:43
|
[Chrome] › customize-store/transitional.spec.js:59:2 › Store owner can view the Transitional page › Clicking on "Done" in the assembler should go to the transitional page:
plugins/woocommerce/tests/e2e-pw/utils/options.js#L20
2) [Chrome] › customize-store/transitional.spec.js:59:2 › Store owner can view the Transitional page › Clicking on "Done" in the assembler should go to the transitional page
Error: apiRequestContext.post: 400 Bad Request
Call log:
- → POST http://localhost:8086/wp-json/e2e-options/update
- user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.28 Safari/537.36
- accept: */*
- accept-encoding: gzip,deflate,br
- Authorization: Basic YWRtaW46cGFzc3dvcmQ=
- cookie:
- content-type: application/json
- content-length: 89
- ← 400 Bad Request
- date: Tue, 26 Mar 2024 12:01:50 GMT
- server: Apache/2.4.54 (Debian)
- x-powered-by: PHP/7.4.33
- x-robots-tag: noindex
- link: <http://localhost:8086/wp-json/>; rel="https://api.w.org/"
- x-content-type-options: nosniff
- access-control-expose-headers: X-WP-Total, X-WP-TotalPages, Link
- access-control-allow-headers: Authorization, X-WP-Nonce, Content-Disposition, Content-MD5, Content-Type
- allow: POST
- expires: Wed, 11 Jan 1984 05:00:00 GMT
- cache-control: no-cache, must-revalidate, max-age=0, no-store, private
- content-length: 22
- connection: close
- content-type: application/json; charset=UTF-8
at ../utils/options.js:20
18 | } );
19 |
> 20 | await apiContext.post( '/wp-json/e2e-options/update', {
| ^
21 | failOnStatusCode: true,
22 | data: { option_name: optionName, option_value: optionValue },
23 | } );
at setOption (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce/tests/e2e-pw/utils/options.js:20:19)
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce/tests/e2e-pw/tests/customize-store/transitional.spec.js:22:3
|
[Chrome] › shopper/account-email-receiving.spec.js:41:2 › Shopper Account Email Receiving › should receive an email when creating an account:
plugins/woocommerce/tests/e2e-pw/tests/shopper/account-email-receiving.spec.js#L58
1) [Chrome] › shopper/account-email-receiving.spec.js:41:2 › Shopper Account Email Receiving › should receive an email when creating an account
Error: page.waitForSelector: Timeout 20000ms exceeded.
Call log:
- waiting for locator('.notice') to be visible
56 | await page.getByRole( 'button', { name: 'Add New User' } ).click();
57 |
> 58 | await page.waitForSelector( '.notice' );
| ^
59 |
60 | // verify that the email was sent
61 | await page.goto(
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce/tests/e2e-pw/tests/shopper/account-email-receiving.spec.js:58:14
|
[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
2) [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
3) [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
|
[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
3) [Chrome] › shopper/cart-checkout-block-calculate-tax.spec.js:108:2 › Shopper Cart & Checkout Block Tax Display › can create Cart Block page
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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
1 skipped
76 passed (9.2m)
|
🎭 Playwright Run Summary
2 flaky
[Chrome] › customize-store/loading-screen/loading-screen.spec.js:24:2 › Assembler - Loading Page › should display loading screen and steps on first run
[Chrome] › customize-store/transitional.spec.js:59:2 › Store owner can view the Transitional page › Clicking on "Done" in the assembler should go to the transitional page
2 skipped
76 passed (7.1m)
|
🎭 Playwright Run Summary
1 skipped
71 passed (6.3m)
|
🎭 Playwright Run Summary
3 skipped
71 passed (4.4m)
|
🎭 Playwright Run Summary
3 flaky
[Chrome] › shopper/account-email-receiving.spec.js:41:2 › Shopper Account Email Receiving › should receive an email when creating an account
[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
73 passed (8.4m)
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/page-loads.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/page-loads.spec.js took 54.5s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/products/block-editor/disable-block-product-editor.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/products/block-editor/disable-block-product-editor.spec.js took 52.6s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/products/block-editor/create-variable-product-block-editor.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/products/block-editor/create-variable-product-block-editor.spec.js took 39.4s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/order-status-filter.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/order-status-filter.spec.js took 35.8s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/product-import-csv.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/product-import-csv.spec.js took 33.8s
|
Slow Test:
plugins/woocommerce/[Chrome] › customize-store/loading-screen/loading-screen.spec.js#L1
plugins/woocommerce/[Chrome] › customize-store/loading-screen/loading-screen.spec.js took 56.1s
|
Slow Test:
plugins/woocommerce/[Chrome] › admin-analytics/analytics-data.spec.js#L1
plugins/woocommerce/[Chrome] › admin-analytics/analytics-data.spec.js took 47.1s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/command-palette.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/command-palette.spec.js took 35.0s
|
Slow Test:
plugins/woocommerce/[Chrome] › admin-analytics/analytics.spec.js#L1
plugins/woocommerce/[Chrome] › admin-analytics/analytics.spec.js took 31.8s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/create-coupon.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/create-coupon.spec.js took 30.3s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/create-restricted-coupons.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/create-restricted-coupons.spec.js took 1.4m
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/order-edit.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/order-edit.spec.js took 59.7s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/order-search.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/order-search.spec.js took 58.0s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/create-shipping-zones.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/create-shipping-zones.spec.js took 48.8s
|
Slow Test:
plugins/woocommerce/[Chrome] › shopper/checkout-block.spec.js#L1
plugins/woocommerce/[Chrome] › shopper/checkout-block.spec.js took 53.4s
|
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 1.3m
|
Slow Test:
plugins/woocommerce/[Chrome] › shopper/account-email-receiving.spec.js#L1
plugins/woocommerce/[Chrome] › shopper/account-email-receiving.spec.js took 55.3s
|
Slow Test:
plugins/woocommerce/[Chrome] › shopper/cart-checkout-restricted-coupons.spec.js#L1
plugins/woocommerce/[Chrome] › shopper/cart-checkout-restricted-coupons.spec.js took 47.8s
|
Slow Test:
plugins/woocommerce/[Chrome] › shopper/cart-block-calculate-shipping.spec.js#L1
plugins/woocommerce/[Chrome] › shopper/cart-block-calculate-shipping.spec.js took 41.8s
|
Slow Test:
plugins/woocommerce/[Chrome] › merchant/products/block-editor/product-inventory-block-editor.spec.js#L1
plugins/woocommerce/[Chrome] › merchant/products/block-editor/product-inventory-block-editor.spec.js took 41.2s
|
Merge e2e test reports
Failed to restore: Cache service responded with 429
|
Merge e2e test reports
Failed to restore: Cache service responded with 429
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
all-blob-reports-4
Expired
|
7.08 MB |
|
e2e-test-report---pr-45939
Expired
|
32 MB |
|