Fixes undefined array key warning #4631
e2e-pw-pull-request.yml
on: pull_request
WC - latest
37m 56s
Annotations
10 errors, 5 warnings, and 1 notice
[merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum:
tests/e2e-pw/specs/merchant/merchant-orders-refund-failures.spec.ts#L38
1) [merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum
"beforeAll" hook timeout of 120000ms exceeded.
36 |
37 | test.describe( 'Order > Refund Failure', () => {
> 38 | test.beforeAll( async ( { browser } ) => {
| ^
39 | const { shopperPage } = await getShopper( browser );
40 | const { merchantPage } = await getMerchant( browser );
41 |
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-orders-refund-failures.spec.ts:38:7
|
[merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum:
tests/e2e-pw/specs/merchant/merchant-orders-refund-failures.spec.ts#L38
1) [merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum
"beforeAll" hook timeout of 120000ms exceeded.
36 |
37 | test.describe( 'Order > Refund Failure', () => {
> 38 | test.beforeAll( async ( { browser } ) => {
| ^
39 | const { shopperPage } = await getShopper( browser );
40 | const { merchantPage } = await getMerchant( browser );
41 |
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-orders-refund-failures.spec.ts:38:7
|
[merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum:
tests/e2e-pw/specs/merchant/merchant-orders-refund-failures.spec.ts#L1
1) [merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum
Error: Object with guid response@67bdbd8fbca2de15235ec361eb06f6c6 was not bound in the connection
|
[merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum:
tests/e2e-pw/specs/merchant/merchant-orders-refund-failures.spec.ts#L1
1) [merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum
Error: Target page, context or browser has been closed
|
[merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum:
tests/e2e-pw/specs/merchant/merchant-orders-refund-failures.spec.ts#L1
1) [merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum
Error: ENOENT: no such file or directory, open '/home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/test-results/.playwright-artifacts-2/23009df37b0bcc44e23f202a1753c5b7.zip'
|
[merchant] › merchant/multi-currency-widget.spec.ts:71:6 › Multi-currency widget setup › can update widget properties:
tests/e2e-pw/specs/merchant/multi-currency-widget.spec.ts#L75
2) [merchant] › merchant/multi-currency-widget.spec.ts:71:6 › Multi-currency widget setup › can update widget properties › opens widget settings
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Settings' }) resolved to 4 elements:
1) <button type="button" aria-pressed="true" aria-expanded=…>…</button> aka getByLabel('Settings', { exact: true })
2) <button type="button" aria-label="Close Settings" class=…>…</button> aka getByRole('button', { name: 'Close Settings' })
3) <button type="button" aria-expanded="true" class="compon…>…</button> aka getByRole('button', { name: 'Multi-Currency settings' })
4) <button type="button" aria-expanded="true" class="compon…>…</button> aka getByRole('button', { name: 'Color settings' })
Call log:
- waiting for getByRole('button', { name: 'Settings' })
73 | await merchantPage
74 | .getByRole( 'button', { name: 'Settings' } )
> 75 | .click();
| ^
76 | await merchantPage
77 | .locator( '[data-title="Currency Switcher Block"]' )
78 | .click();
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/multi-currency-widget.spec.ts:75:6
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/multi-currency-widget.spec.ts:72:14
|
[shopper] › shopper/shopper-multi-currency-widget.spec.ts:36:6 › Shopper Multi-Currency widget › should display currency switcher widget if multi-currency is enabled:
tests/e2e-pw/specs/shopper/shopper-multi-currency-widget.spec.ts#L42
3) [shopper] › shopper/shopper-multi-currency-widget.spec.ts:36:6 › Shopper Multi-Currency widget › should display currency switcher widget if multi-currency is enabled
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: locator('.widget select[name=currency]')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for locator('.widget select[name=currency]')
40 | await expect(
41 | shopperPage.locator( '.widget select[name=currency]' )
> 42 | ).toBeVisible();
| ^
43 | } );
44 |
45 | test( 'should not display currency switcher widget if multi-currency is disabled', async () => {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-multi-currency-widget.spec.ts:42:5
|
[shopper] › shopper/shopper-multi-currency-widget.spec.ts:36:6 › Shopper Multi-Currency widget › should display currency switcher widget if multi-currency is enabled:
tests/e2e-pw/specs/shopper/shopper-multi-currency-widget.spec.ts#L42
3) [shopper] › shopper/shopper-multi-currency-widget.spec.ts:36:6 › Shopper Multi-Currency widget › should display currency switcher widget if multi-currency is enabled
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(locator).toBeVisible()
Locator: locator('.widget select[name=currency]')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 20000ms
- waiting for locator('.widget select[name=currency]')
40 | await expect(
41 | shopperPage.locator( '.widget select[name=currency]' )
> 42 | ).toBeVisible();
| ^
43 | } );
44 |
45 | test( 'should not display currency switcher widget if multi-currency is disabled', async () => {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-multi-currency-widget.spec.ts:42:5
|
[shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:129:9 › Shopper can save and delete cards › Testing card: 3ds › should add the 3ds card as a new payment method:
tests/e2e-pw/specs/shopper/shopper-myaccount-saved-cards.spec.ts#L148
4) [shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:129:9 › Shopper can save and delete cards › Testing card: 3ds › 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.')
146 | 'Payment method successfully added.'
147 | )
> 148 | ).toBeVisible();
| ^
149 |
150 | // Verify that the card was added
151 | await expect(
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-myaccount-saved-cards.spec.ts:148:8
|
[shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:129:9 › Shopper can save and delete cards › Testing card: 3ds2 › should add the 3ds2 card as a new payment method:
tests/e2e-pw/specs/shopper/shopper-myaccount-saved-cards.spec.ts#L148
5) [shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:129:9 › Shopper can save and delete cards › Testing card: 3ds2 › 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.')
146 | 'Payment method successfully added.'
147 | )
> 148 | ).toBeVisible();
| ^
149 |
150 | // Verify that the card was added
151 | await expect(
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-myaccount-saved-cards.spec.ts:148:8
|
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-checkout-save-card-and-purchase.spec.ts#L1
[shopper] › shopper/shopper-checkout-save-card-and-purchase.spec.ts took 1.2m
|
Slow Test:
[shopper] › shopper/shopper-bnpls-checkout.spec.ts#L1
[shopper] › shopper/shopper-bnpls-checkout.spec.ts took 58.8s
|
Slow Test:
[shopper] › shopper/shopper-myaccount-payment-methods-add-fail.spec.ts#L1
[shopper] › shopper/shopper-myaccount-payment-methods-add-fail.spec.ts took 57.0s
|
🎭 Playwright Run Summary
5 flaky
[merchant] › merchant/merchant-orders-refund-failures.spec.ts:93:8 › Order > Refund Failure › Invalid quantity › should fail refund attempt when quantity is greater than maximum
[merchant] › merchant/multi-currency-widget.spec.ts:71:6 › Multi-currency widget setup › can update widget properties
[shopper] › shopper/shopper-multi-currency-widget.spec.ts:36:6 › Shopper Multi-Currency widget › should display currency switcher widget if multi-currency is enabled
[shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:129:9 › Shopper can save and delete cards › Testing card: 3ds › should add the 3ds card as a new payment method
[shopper] › shopper/shopper-myaccount-saved-cards.spec.ts:129:9 › Shopper can save and delete cards › Testing card: 3ds2 › should add the 3ds2 card as a new payment method
143 passed (34.0m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
|
110 MB |
|