Migrate the Shopper Renew Subscription E2E test to Playwright #4191
e2e-pw-pull-request.yml
on: pull_request
WC - latest
12m 15s
Annotations
4 errors, 5 warnings, and 1 notice
[shopper] › shopper/shopper-myaccount-renew-subscription.spec.ts:32:7 › Subscriptions > Renew a subscription in my account › should be able to purchase a subscription:
tests/e2e-pw/utils/rest-api.ts#L19
1) [shopper] › shopper/shopper-myaccount-renew-subscription.spec.ts:32:7 › Subscriptions > Renew a subscription in my account › should be able to purchase a subscription
TypeError: Cannot read properties of undefined (reading 'endsWith')
at ../utils/rest-api.ts:19
17 | config.users.admin.password
18 | )
> 19 | .create();
| ^
20 |
21 | /**
22 | * Deletes a customer account by their email address if the user exists.
at HTTPClientFactory.create (/home/runner/work/woocommerce-payments/woocommerce-payments/node_modules/@woocommerce/api/dist/http/http-client-factory.js:71:34)
at getAdminClient (/home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/utils/rest-api.ts:19:4)
at deleteCustomerByEmailAddress (/home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/utils/rest-api.ts:30:17)
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-myaccount-renew-subscription.spec.ts:26:38
|
[shopper] › shopper/shopper-myaccount-renew-subscription.spec.ts:32:7 › Subscriptions > Renew a subscription in my account › should be able to purchase a subscription:
tests/e2e-pw/utils/rest-api.ts#L19
1) [shopper] › shopper/shopper-myaccount-renew-subscription.spec.ts:32:7 › Subscriptions > Renew a subscription in my account › should be able to purchase a subscription
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'endsWith')
at ../utils/rest-api.ts:19
17 | config.users.admin.password
18 | )
> 19 | .create();
| ^
20 |
21 | /**
22 | * Deletes a customer account by their email address if the user exists.
at HTTPClientFactory.create (/home/runner/work/woocommerce-payments/woocommerce-payments/node_modules/@woocommerce/api/dist/http/http-client-factory.js:71:34)
at getAdminClient (/home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/utils/rest-api.ts:19:4)
at deleteCustomerByEmailAddress (/home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/utils/rest-api.ts:30:17)
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-myaccount-renew-subscription.spec.ts:26:38
|
[shopper] › shopper/shopper-myaccount-renew-subscription.spec.ts:32:7 › Subscriptions > Renew a subscription in my account › should be able to purchase a subscription:
tests/e2e-pw/utils/rest-api.ts#L19
1) [shopper] › shopper/shopper-myaccount-renew-subscription.spec.ts:32:7 › Subscriptions > Renew a subscription in my account › should be able to purchase a subscription
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Cannot read properties of undefined (reading 'endsWith')
at ../utils/rest-api.ts:19
17 | config.users.admin.password
18 | )
> 19 | .create();
| ^
20 |
21 | /**
22 | * Deletes a customer account by their email address if the user exists.
at HTTPClientFactory.create (/home/runner/work/woocommerce-payments/woocommerce-payments/node_modules/@woocommerce/api/dist/http/http-client-factory.js:71:34)
at getAdminClient (/home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/utils/rest-api.ts:19:4)
at deleteCustomerByEmailAddress (/home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/utils/rest-api.ts:30:17)
at /home/runner/work/woocommerce-payments/woocommerce-payments/tests/e2e-pw/specs/shopper/shopper-myaccount-renew-subscription.spec.ts:26:38
|
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-pay-for-order.spec.ts#L1
[shopper] › shopper/shopper-pay-for-order.spec.ts took 54.7s
|
Slow Test:
[merchant] › merchant/multi-currency-setup.spec.ts#L1
[merchant] › merchant/multi-currency-setup.spec.ts took 49.1s
|
Slow Test:
[merchant] › merchant/multi-currency-on-boarding.spec.ts#L1
[merchant] › merchant/multi-currency-on-boarding.spec.ts took 42.0s
|
Slow Test:
[shopper] › shopper/shopper-checkout-purchase.spec.ts#L1
[shopper] › shopper/shopper-checkout-purchase.spec.ts took 27.4s
|
🎭 Playwright Run Summary
1 failed
[shopper] › shopper/shopper-myaccount-renew-subscription.spec.ts:32:7 › Subscriptions > Renew a subscription in my account › should be able to purchase a subscription
1 skipped
51 passed (8.3m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
Expired
|
4.3 MB |
|