Skip to content

Lint fixes

Lint fixes #2342

Triggered via pull request December 19, 2024 17:12
Status Failure
Total duration 22m 55s
Artifacts 1

e2e-tests.yml

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

Annotations

14 errors, 11 warnings, and 2 notices
[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#L1
1) [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.
[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#L28
1) [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.innerText: Test timeout of 90000ms exceeded. Call log: - waiting for locator('.woocommerce-error') 26 | 27 | expect > 28 | .soft( await page.innerText( '.woocommerce-error' ) ) | ^ 29 | .toMatch( new RegExp( `(?:${ card.error.join( '|' ) })`, 'i' ) ); 30 | }; 31 | at testCard (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/card-failures.spec.js:28:21)
[default] › checkout/shortcode/normal-card.spec.js:12:5 › customer can checkout with a normal credit card @smoke: tests/e2e/tests/checkout/shortcode/normal-card.spec.js#L1
2) [default] › checkout/shortcode/normal-card.spec.js:12:5 › customer can checkout with a normal credit card @smoke Test timeout of 90000ms exceeded.
[default] › checkout/shortcode/normal-card.spec.js:12:5 › customer can checkout with a normal credit card @smoke: tests/e2e/tests/checkout/shortcode/normal-card.spec.js#L23
2) [default] › checkout/shortcode/normal-card.spec.js:12:5 › customer can checkout with a normal credit card @smoke Error: page.waitForNavigation: Test timeout of 90000ms exceeded. =========================== logs =========================== waiting for navigation until "load" ============================================================ 21 | await fillCreditCardDetailsShortcode( page, config.get( 'cards.basic' ) ); 22 | await page.locator( 'text=Place order' ).click(); > 23 | await page.waitForNavigation(); | ^ 24 | 25 | await expect( page.locator( 'h1.entry-title' ) ).toHaveText( 26 | 'Order received' at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/checkout/shortcode/normal-card.spec.js:23:13
[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#L1
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.
[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#L155
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: locator.fill: Test timeout of 90000ms exceeded. Call log: - waiting for frameLocator('#stripe-card-element iframe[name^="__privateStripeFrame"]').locator('[name="cardnumber"]') at ../utils/payments.js:155 153 | ) 154 | .locator( '[name="cardnumber"]' ) > 155 | .fill( card.number ); | ^ 156 | await page 157 | .frameLocator( 158 | '#stripe-exp-element iframe[name^="__privateStripeFrame"]' at fillCreditCardDetailsShortcodeLegacy (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:155:4) at testCard (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:24:8) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:51:9
[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#L1
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.
[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#L155
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: locator.fill: Test timeout of 90000ms exceeded. Call log: - waiting for frameLocator('#stripe-card-element iframe[name^="__privateStripeFrame"]').locator('[name="cardnumber"]') at ../utils/payments.js:155 153 | ) 154 | .locator( '[name="cardnumber"]' ) > 155 | .fill( card.number ); | ^ 156 | await page 157 | .frameLocator( 158 | '#stripe-exp-element iframe[name^="__privateStripeFrame"]' at fillCreditCardDetailsShortcodeLegacy (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:155:4) at testCard (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:24:8) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:51:9
[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#L1
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.
[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#L155
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: locator.fill: Test timeout of 90000ms exceeded. Call log: - waiting for frameLocator('#stripe-card-element iframe[name^="__privateStripeFrame"]').locator('[name="cardnumber"]') at ../utils/payments.js:155 153 | ) 154 | .locator( '[name="cardnumber"]' ) > 155 | .fill( card.number ); | ^ 156 | await page 157 | .frameLocator( 158 | '#stripe-exp-element iframe[name^="__privateStripeFrame"]' at fillCreditCardDetailsShortcodeLegacy (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:155:4) at testCard (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:24:8) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:51:9
[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#L1
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.
[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#L155
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: locator.fill: Test timeout of 90000ms exceeded. Call log: - waiting for frameLocator('#stripe-card-element iframe[name^="__privateStripeFrame"]').locator('[name="cardnumber"]') at ../utils/payments.js:155 153 | ) 154 | .locator( '[name="cardnumber"]' ) > 155 | .fill( card.number ); | ^ 156 | await page 157 | .frameLocator( 158 | '#stripe-exp-element iframe[name^="__privateStripeFrame"]' at fillCreditCardDetailsShortcodeLegacy (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:155:4) at testCard (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:24:8) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:51:9
[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#L1
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.
[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#L155
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: locator.fill: Test timeout of 90000ms exceeded. Call log: - waiting for frameLocator('#stripe-card-element iframe[name^="__privateStripeFrame"]').locator('[name="cardnumber"]') at ../utils/payments.js:155 153 | ) 154 | .locator( '[name="cardnumber"]' ) > 155 | .fill( card.number ); | ^ 156 | await page 157 | .frameLocator( 158 | '#stripe-exp-element iframe[name^="__privateStripeFrame"]' at fillCreditCardDetailsShortcodeLegacy (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/utils/payments.js:155:4) at testCard (/home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:24:8) at /home/runner/work/woocommerce-gateway-stripe/woocommerce-gateway-stripe/tests/e2e/tests/_legacy-experience/checkout/card-failures.spec.js:55:9
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 54.6s
Slow Test: [default] › checkout/blocks/sca-card.spec.js#L1
[default] › checkout/blocks/sca-card.spec.js took 50.5s
Slow Test: [default] › checkout/blocks/subscription-product.spec.js#L1
[default] › checkout/blocks/subscription-product.spec.js took 45.9s
Slow Test: [default] › checkout/blocks/normal-card.spec.js#L1
[default] › checkout/blocks/normal-card.spec.js took 37.1s
Slow Test: [default] › checkout/shortcode/saved-card.spec.js#L1
[default] › checkout/shortcode/saved-card.spec.js took 31.6s
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 29.0s
Slow Test: [legacy] › _legacy-experience/woocommerce-blocks/sca-card.spec.js#L1
[legacy] › _legacy-experience/woocommerce-blocks/sca-card.spec.js took 24.6s
Slow Test: [legacy] › _legacy-experience/woocommerce-blocks/subscription-product.spec.js#L1
[legacy] › _legacy-experience/woocommerce-blocks/subscription-product.spec.js took 17.5s
Slow Test: [legacy] › _legacy-experience/woocommerce-blocks/normal-card.spec.js#L1
[legacy] › _legacy-experience/woocommerce-blocks/normal-card.spec.js took 16.7s
🎭 Playwright Run Summary
2 flaky [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/normal-card.spec.js:12:5 › customer can checkout with a normal credit card @smoke 21 passed (3.9m)
🎭 Playwright Run Summary
12 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/saved-card.spec.js:30:5 › customer can checkout with a saved 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 [legacy] › _legacy-experience/subscriptions/subscription-renewal.spec.js:50:5 › customer can renew a subscription @smoke @subscriptions 11 passed (19.2m)

Artifacts

Produced during runtime
Name Size
Legacy-WP_latest-WC_latest-results
388 MB