Port admin analytics E2E tests from Puppeteer to Playwright #4149
Annotations
7 errors, 5 warnings, and 1 notice
Run tests, upload screenshots & logs:
tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts#L48
1) [merchant] › merchant/merchant-admin-analytics.spec.ts:45:6 › Admin order analytics › should load without any errors
Error: expect(received).toBe(expected) // Object.is equality
Expected: "h2:text=\"Orders\""
Received: {"_frame": {"_guid": "frame@3ae84752d547b2b82d1ef792bbd69acc", "_type": "Frame"}, "_selector": "internal:text=\"Orders\"i"}
46 | const { merchantPage } = await getMerchant( browser );
47 | await goToOrderAnalytics( merchantPage );
> 48 | expect( merchantPage.getByText( 'Orders' ) ).toBe( 'h2:text="Orders"' );
| ^
49 | await expect( merchantPage ).toHaveScreenshot();
50 | } );
51 | test( 'orders table should have the customer currency column', async ( {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts:48:48
|
Run tests, upload screenshots & logs:
tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts#L48
1) [merchant] › merchant/merchant-admin-analytics.spec.ts:45:6 › Admin order analytics › should load without any errors
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "h2:text=\"Orders\""
Received: {"_frame": {"_guid": "frame@127d91513aaee72c09e2fb64736bdb61", "_type": "Frame"}, "_selector": "internal:text=\"Orders\"i"}
46 | const { merchantPage } = await getMerchant( browser );
47 | await goToOrderAnalytics( merchantPage );
> 48 | expect( merchantPage.getByText( 'Orders' ) ).toBe( 'h2:text="Orders"' );
| ^
49 | await expect( merchantPage ).toHaveScreenshot();
50 | } );
51 | test( 'orders table should have the customer currency column', async ( {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts:48:48
|
Run tests, upload screenshots & logs:
tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts#L48
1) [merchant] › merchant/merchant-admin-analytics.spec.ts:45:6 › Admin order analytics › should load without any errors
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "h2:text=\"Orders\""
Received: {"_frame": {"_guid": "frame@0d06b45f1749eea698b6e09100ad3038", "_type": "Frame"}, "_selector": "internal:text=\"Orders\"i"}
46 | const { merchantPage } = await getMerchant( browser );
47 | await goToOrderAnalytics( merchantPage );
> 48 | expect( merchantPage.getByText( 'Orders' ) ).toBe( 'h2:text="Orders"' );
| ^
49 | await expect( merchantPage ).toHaveScreenshot();
50 | } );
51 | test( 'orders table should have the customer currency column', async ( {
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts:48:48
|
Run tests, upload screenshots & logs:
tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts#L59
2) [merchant] › merchant/merchant-admin-analytics.spec.ts:51:6 › Admin order analytics › orders table should have the customer currency column
Error: expect(received).toBe(expected) // Object.is equality
Expected: "span:text=\"Customer Currency\""
Received: {"_frame": {"_guid": "frame@cba86093152eda5a29eda83858cd5092", "_type": "Frame"}, "_selector": "internal:text=\"Customer Currency\"i"}
57 | 'Customer Currency'
58 | );
> 59 | expect( customerCurrencyColumn ).toBe(
| ^
60 | 'span:text="Customer Currency"'
61 | );
62 | await expect( customerCurrencyColumn ).toHaveScreenshot();
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts:59:36
|
Run tests, upload screenshots & logs:
tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts#L59
2) [merchant] › merchant/merchant-admin-analytics.spec.ts:51:6 › Admin order analytics › orders table should have the customer currency column
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "span:text=\"Customer Currency\""
Received: {"_frame": {"_guid": "frame@0300830cec7978ba6298a156e2ad3f0f", "_type": "Frame"}, "_selector": "internal:text=\"Customer Currency\"i"}
57 | 'Customer Currency'
58 | );
> 59 | expect( customerCurrencyColumn ).toBe(
| ^
60 | 'span:text="Customer Currency"'
61 | );
62 | await expect( customerCurrencyColumn ).toHaveScreenshot();
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts:59:36
|
Run tests, upload screenshots & logs:
tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts#L59
2) [merchant] › merchant/merchant-admin-analytics.spec.ts:51:6 › Admin order analytics › orders table should have the customer currency column
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "span:text=\"Customer Currency\""
Received: {"_frame": {"_guid": "frame@b45eac82b2f43ec36b8cf409ed309ff4", "_type": "Frame"}, "_selector": "internal:text=\"Customer Currency\"i"}
57 | 'Customer Currency'
58 | );
> 59 | expect( customerCurrencyColumn ).toBe(
| ^
60 | 'span:text="Customer Currency"'
61 | );
62 | await expect( customerCurrencyColumn ).toHaveScreenshot();
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/merchant/merchant-admin-analytics.spec.ts:59:36
|
Run tests, upload screenshots & logs
Process completed with exit code 1.
|
Run tests, upload screenshots & logs:
[merchant] › merchant/merchant-disputes-respond.spec.ts#L1
[merchant] › merchant/merchant-disputes-respond.spec.ts took 1.5m
|
Run tests, upload screenshots & logs:
[merchant] › merchant/multi-currency-setup.spec.ts#L1
[merchant] › merchant/multi-currency-setup.spec.ts took 47.8s
|
Run tests, upload screenshots & logs:
[shopper] › shopper/shopper-pay-for-order.spec.ts#L1
[shopper] › shopper/shopper-pay-for-order.spec.ts took 44.8s
|
Run tests, upload screenshots & logs:
[merchant] › merchant/multi-currency-on-boarding.spec.ts#L1
[merchant] › merchant/multi-currency-on-boarding.spec.ts took 41.6s
|
Run tests, upload screenshots & logs:
[shopper] › shopper/shopper-checkout-purchase.spec.ts#L1
[shopper] › shopper/shopper-checkout-purchase.spec.ts took 24.1s
|
Run tests, upload screenshots & logs
2 failed
[merchant] › merchant/merchant-admin-analytics.spec.ts:45:6 › Admin order analytics › should load without any errors
[merchant] › merchant/merchant-admin-analytics.spec.ts:51:6 › Admin order analytics › orders table should have the customer currency column
51 passed (9.4m)
|
Loading