Skip to content

Fix fatal error when editing the shortcode checkout page #2610

Fix fatal error when editing the shortcode checkout page

Fix fatal error when editing the shortcode checkout page #2610

Triggered via pull request January 22, 2025 12:34
Status Failure
Total duration 21m 57s
Artifacts 2

e2e-tests.yml

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

Annotations

20 errors, 12 warnings, and 2 notices
[default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/tests/checkout/shortcode/card-failures.spec.js#L12
1) [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:12:6
[default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/utils/payments.js#L197
1) [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:15:2
[default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/tests/checkout/shortcode/card-failures.spec.js#L12
1) [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:12:6
[default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/utils/payments.js#L197
1) [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:15:2
[default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/tests/checkout/shortcode/card-failures.spec.js#L12
1) [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:12:6
[default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/utils/payments.js#L197
1) [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:15:2
[default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/tests/checkout/shortcode/card-failures.spec.js#L12
1) [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:12:6
[default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/utils/payments.js#L197
1) [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:15:2
[default] › checkout/shortcode/card-failures.spec.js:38:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message: tests/e2e/tests/checkout/shortcode/card-failures.spec.js#L12
2) [default] › checkout/shortcode/card-failures.spec.js:38:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:12:6
[default] › checkout/shortcode/card-failures.spec.js:38:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message: tests/e2e/utils/payments.js#L197
2) [default] › checkout/shortcode/card-failures.spec.js:38:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:15:2
[legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js#L12
1) [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:12:6
[legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/utils/payments.js#L197
1) [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:15:2
[legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js#L12
1) [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:12:6
[legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/utils/payments.js#L197
1) [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:15:2
[legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js#L12
1) [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:12:6
[legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/utils/payments.js#L197
1) [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:15:2
[legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js#L12
1) [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:12:6
[legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke: tests/e2e/utils/payments.js#L197
1) [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke Retry #3 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:15:2
[legacy] › _legacy-experience/checkout/card-failures.spec.js:53:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message: tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js#L12
2) [legacy] › _legacy-experience/checkout/card-failures.spec.js:53:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message Test timeout of 90000ms exceeded while running "beforeEach" hook. 10 | } = payments; 11 | > 12 | test.beforeEach( async ( { page } ) => { | ^ 13 | await emptyCart( page ); 14 | await setupCart( page ); 15 | await setupShortcodeCheckout( at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:12:6
[legacy] › _legacy-experience/checkout/card-failures.spec.js:53:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message: tests/e2e/utils/payments.js#L197
2) [legacy] › _legacy-experience/checkout/card-failures.spec.js:53:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message Error: page.fill: Test timeout of 90000ms exceeded. Call log: - waiting for locator('#billing_company') at ../utils/payments.js:197 195 | continue; 196 | } > 197 | await page.fill( | ^ 198 | `#billing_${ fieldName }`, 199 | billingDetails[ fieldName ] 200 | ); at setupShortcodeCheckout (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:197:15) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:15:2
Default WP=latest, WC=latest, PHP=7.4
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: [default] › checkout/blocks/saved-card.spec.js#L1
[default] › checkout/blocks/saved-card.spec.js took 48.6s
Slow Test: [default] › checkout/blocks/sca-card.spec.js#L1
[default] › checkout/blocks/sca-card.spec.js took 44.3s
Slow Test: [default] › checkout/blocks/subscription-product.spec.js#L1
[default] › checkout/blocks/subscription-product.spec.js took 41.7s
Slow Test: [default] › checkout/blocks/normal-card.spec.js#L1
[default] › checkout/blocks/normal-card.spec.js took 34.8s
Slow Test: [default] › checkout/shortcode/saved-card.spec.js#L1
[default] › checkout/shortcode/saved-card.spec.js took 21.8s
Legacy WP=latest, WC=latest, PHP=7.4
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: [legacy] › _legacy-experience/woocommerce-blocks/saved-card.spec.js#L1
[legacy] › _legacy-experience/woocommerce-blocks/saved-card.spec.js took 37.5s
Slow Test: [legacy] › _legacy-experience/woocommerce-blocks/normal-card.spec.js#L1
[legacy] › _legacy-experience/woocommerce-blocks/normal-card.spec.js took 32.7s
Slow Test: [legacy] › _legacy-experience/subscriptions/subscription-renewal.spec.js#L1
[legacy] › _legacy-experience/subscriptions/subscription-renewal.spec.js took 26.5s
Slow Test: [legacy] › _legacy-experience/woocommerce-blocks/subscription-product.spec.js#L1
[legacy] › _legacy-experience/woocommerce-blocks/subscription-product.spec.js took 23.0s
Slow Test: [legacy] › _legacy-experience/checkout/saved-card.spec.js#L1
[legacy] › _legacy-experience/checkout/saved-card.spec.js took 20.3s
🎭 Playwright Run Summary
10 failed [default] › checkout/shortcode/card-failures.spec.js:34:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke [default] › checkout/shortcode/card-failures.spec.js:38:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message [default] › checkout/shortcode/card-failures.spec.js:42:6 › customer cannot checkout with invalid cards › a card with invalid number shows the correct error message [default] › checkout/shortcode/card-failures.spec.js:46:6 › customer cannot checkout with invalid cards › an expired card shows the correct error message [default] › checkout/shortcode/card-failures.spec.js:50:6 › customer cannot checkout with invalid cards › a card with incorrect CVC shows the correct error message @smoke [default] › checkout/shortcode/card-failures.spec.js:54:6 › customer cannot checkout with invalid cards › an error processing the card shows the correct error message [default] › checkout/shortcode/normal-card.spec.js:12:5 › customer can checkout with a normal credit card @smoke [default] › checkout/shortcode/sca-card.spec.js:12:5 › customer can checkout with a SCA card @smoke [default] › checkout/shortcode/subscription-product.spec.js:32:5 › customer can purchase a subscription product @smoke @subscriptions [default] › orders/full-refund.spec.js:13:5 › merchant can issue a full refund @smoke ────────── 1 flaky [default] › subscriptions/subscription-renewal.spec.js:47:5 › customer can renew a subscription @smoke @subscriptions 12 passed (14.6m)
🎭 Playwright Run Summary
10 failed [legacy] › _legacy-experience/checkout/card-failures.spec.js:49:6 › customer cannot checkout with invalid cards › a declined card shows the correct error message @smoke [legacy] › _legacy-experience/checkout/card-failures.spec.js:53:6 › customer cannot checkout with invalid cards › a card with insufficient funds shows the correct error message [legacy] › _legacy-experience/checkout/card-failures.spec.js:57:6 › customer cannot checkout with invalid cards › a card with invalid number shows the correct error message [legacy] › _legacy-experience/checkout/card-failures.spec.js:61:6 › customer cannot checkout with invalid cards › an expired card shows the correct error message [legacy] › _legacy-experience/checkout/card-failures.spec.js:65:6 › customer cannot checkout with invalid cards › a card with incorrect CVC shows the correct error message @smoke [legacy] › _legacy-experience/checkout/card-failures.spec.js:69:6 › customer cannot checkout with invalid cards › an error processing the card shows the correct error message [legacy] › _legacy-experience/checkout/normal-card.spec.js:12:5 › customer can checkout with a normal credit card @smoke [legacy] › _legacy-experience/checkout/sca-card.spec.js:12:5 › customer can checkout with a SCA card @smoke [legacy] › _legacy-experience/checkout/subscription-product.spec.js:35:5 › customer can purchase a subscription product @smoke @subscriptions [legacy] › _legacy-experience/order/full-refund.spec.js:13:5 › merchant can issue a full refund @smoke 1 flaky [legacy] › _legacy-experience/woocommerce-blocks/sca-card.spec.js:12:5 › customer can checkout with a SCA card @smoke @blocks 12 passed (18.3m)

Artifacts

Produced during runtime
Name Size
Default-WP_latest-WC_latest-results
256 MB
Legacy-WP_latest-WC_latest-results
640 MB