Convert shopper checkout purchase with UPE tests to Playwright #4486
e2e-pw-pull-request.yml
on: pull_request
WC - latest
27m 49s
Annotations
10 errors, 5 warnings, and 1 notice
[shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:43:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to purchase a free trial:
tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts#L80
1) [shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:43:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to purchase a free trial
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('cell', { name: /^Total: \$0\.00/ })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByRole('cell', { name: /^Total: \$0\.00/ })
78 | await expect(
79 | shopperPage.getByRole( 'cell', { name: /^Total: \$0\.00/ } )
> 80 | ).toBeVisible();
| ^
81 |
82 | // Proceed to the checkout page and verify that the 14-day free trial is shown in the product line item,
83 | // and that the first renewal date is 14 days from now.
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts:80:6
|
[shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:43:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to purchase a free trial:
tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts#L80
1) [shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:43:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to purchase a free trial
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('cell', { name: /^Total: \$0\.00/ })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByRole('cell', { name: /^Total: \$0\.00/ })
78 | await expect(
79 | shopperPage.getByRole( 'cell', { name: /^Total: \$0\.00/ } )
> 80 | ).toBeVisible();
| ^
81 |
82 | // Proceed to the checkout page and verify that the 14-day free trial is shown in the product line item,
83 | // and that the first renewal date is 14 days from now.
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts:80:6
|
[shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:43:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to purchase a free trial:
tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts#L80
1) [shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:43:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to purchase a free trial
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('cell', { name: /^Total: \$0\.00/ })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByRole('cell', { name: /^Total: \$0\.00/ })
78 | await expect(
79 | shopperPage.getByRole( 'cell', { name: /^Total: \$0\.00/ } )
> 80 | ).toBeVisible();
| ^
81 |
82 | // Proceed to the checkout page and verify that the 14-day free trial is shown in the product line item,
83 | // and that the first renewal date is 14 days from now.
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts:80:6
|
[shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:127:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to create an order with "Setup Intent":
tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts#L134
2) [shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:127:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to create an order with "Setup Intent"
Error: Timed out 20000ms waiting for expect(locator).toHaveText(expected)
Locator: getByText('Payment via Credit card /')
Expected pattern: /\(seti_.*\)/
Received string: ""
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for getByText('Payment via Credit card /')
132 | await expect(
133 | merchantPage.getByText( 'Payment via Credit card /' )
> 134 | ).toHaveText( /\(seti_.*\)/ );
| ^
135 |
136 | await goToSubscriptions( merchantPage );
137 | const subscriptionRow = merchantPage.getByRole( 'row', {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts:134:6
|
[shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:127:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to create an order with "Setup Intent":
tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts#L134
2) [shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:127:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to create an order with "Setup Intent"
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(locator).toHaveText(expected)
Locator: getByText('Payment via Credit card /')
Expected pattern: /\(seti_.*\)/
Received string: ""
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for getByText('Payment via Credit card /')
132 | await expect(
133 | merchantPage.getByText( 'Payment via Credit card /' )
> 134 | ).toHaveText( /\(seti_.*\)/ );
| ^
135 |
136 | await goToSubscriptions( merchantPage );
137 | const subscriptionRow = merchantPage.getByRole( 'row', {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts:134:6
|
[shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:127:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to create an order with "Setup Intent":
tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts#L134
2) [shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:127:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to create an order with "Setup Intent"
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(locator).toHaveText(expected)
Locator: getByText('Payment via Credit card /')
Expected pattern: /\(seti_.*\)/
Received string: ""
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for getByText('Payment via Credit card /')
132 | await expect(
133 | merchantPage.getByText( 'Payment via Credit card /' )
> 134 | ).toHaveText( /\(seti_.*\)/ );
| ^
135 |
136 | await goToSubscriptions( merchantPage );
137 | const subscriptionRow = merchantPage.getByRole( 'row', {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-subscriptions-purchase-free-trial.spec.ts:134:6
|
[shopper] › shopper/shopper-checkout-purchase.spec.ts:58:8 › Successful purchase › Carding protection false › using a 3DS card:
tests/e2e-pw/specs/shopper/shopper-checkout-purchase.spec.ts#L69
3) [shopper] › shopper/shopper-checkout-purchase.spec.ts:58:8 › Successful purchase › Carding protection false › using a 3DS card
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: getByRole('heading', { name: 'Order received' })
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByRole('heading', { name: 'Order received' })
67 | name: 'Order received',
68 | } )
> 69 | ).toBeVisible();
| ^
70 | } );
71 | } );
72 | }
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-checkout-purchase.spec.ts:69:7
|
[shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:98:7 › Shopper can save and delete cards › should add the 3ds card as a new payment method:
tests/e2e-pw/specs/shopper/shopper-myaccount-saved-cards.spec.ts#L117
4) [shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:98:7 › Shopper can save and delete cards › should add the 3ds card as a new payment method
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: getByText('Payment method successfully added')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByText('Payment method successfully added')
115 | await expect(
116 | shopperPage.getByText( 'Payment method successfully added' )
> 117 | ).toBeVisible();
| ^
118 |
119 | await expect(
120 | shopperPage.getByText(
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-myaccount-saved-cards.spec.ts:117:6
|
[shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:98:7 › Shopper can save and delete cards › should add the 3ds2 card as a new payment method:
tests/e2e-pw/specs/shopper/shopper-myaccount-saved-cards.spec.ts#L117
5) [shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:98:7 › Shopper can save and delete cards › should add the 3ds2 card as a new payment method
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: getByText('Payment method successfully added')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for getByText('Payment method successfully added')
115 | await expect(
116 | shopperPage.getByText( 'Payment method successfully added' )
> 117 | ).toBeVisible();
| ^
118 |
119 | await expect(
120 | shopperPage.getByText(
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-myaccount-saved-cards.spec.ts:117:6
|
WC - latest
Process completed with exit code 1.
|
Slow Test:
[merchant] › merchant/merchant-disputes-respond.spec.ts#L1
[merchant] › merchant/merchant-disputes-respond.spec.ts took 1.5m
|
Slow Test:
[shopper] › shopper/shopper-checkout-failures.spec.ts#L1
[shopper] › shopper/shopper-checkout-failures.spec.ts took 1.3m
|
Slow Test:
[shopper] › shopper/shopper-bnpls-checkout.spec.ts#L1
[shopper] › shopper/shopper-bnpls-checkout.spec.ts took 58.1s
|
Slow Test:
[merchant] › merchant/multi-currency-setup.spec.ts#L1
[merchant] › merchant/multi-currency-setup.spec.ts took 51.1s
|
Slow Test:
[shopper] › shopper/shopper-pay-for-order.spec.ts#L1
[shopper] › shopper/shopper-pay-for-order.spec.ts took 46.4s
|
🎭 Playwright Run Summary
2 failed
[shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:43:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to purchase a free trial
[shopper] › shopper/shopper-subscriptions-purchase-free-trial.spec.ts:127:7 › Shopper: Subscriptions - Purchase Free Trial › Merchant should be able to create an order with "Setup Intent"
3 flaky
[shopper] › shopper/shopper-checkout-purchase.spec.ts:58:8 › Successful purchase › Carding protection false › using a 3DS card
[shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:98:7 › Shopper can save and delete cards › should add the 3ds card as a new payment method
[shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:98:7 › Shopper can save and delete cards › should add the 3ds2 card as a new payment method
96 passed (24.0m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
|
33.8 MB |
|