Add vendor coupon tests #1508
Annotations
3 errors, 3 warnings, and 1 notice
π§ͺ Run api tests:
tests/pw/utils/apiUtils.ts#L555
1) [api_tests] βΊ calculation.spec.ts:455:9 βΊ vendor coupon calculation test βΊ vendor coupon: single coupon
Error: expect(received).toBeTruthy()
Received: false
at ../../utils/apiUtils.ts:555
553 | await this.updateCoupon(couponId, { ...coupon, product_ids: productIds }, auth);
554 | } else {
> 555 | expect(response.ok()).toBeTruthy();
| ^
556 | couponId = String(responseBody?.id);
557 | couponCode = String(responseBody?.code);
558 | }
at ApiUtils.createCoupon (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:555:35)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/calculation.spec.ts:456:34
|
π§ͺ Run api tests:
tests/pw/utils/apiUtils.ts#L555
1) [api_tests] βΊ calculation.spec.ts:455:9 βΊ vendor coupon calculation test βΊ vendor coupon: single coupon
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Error: expect(received).toBeTruthy()
Received: false
at ../../utils/apiUtils.ts:555
553 | await this.updateCoupon(couponId, { ...coupon, product_ids: productIds }, auth);
554 | } else {
> 555 | expect(response.ok()).toBeTruthy();
| ^
556 | couponId = String(responseBody?.id);
557 | couponCode = String(responseBody?.code);
558 | }
at ApiUtils.createCoupon (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:555:35)
at /home/runner/work/dokan/dokan/tests/pw/tests/api/calculation.spec.ts:456:34
|
π§ͺ Run api tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
π§ͺ Run api tests:
tests/pw/[api_tests] βΊ products.spec.ts#L1
tests/pw/[api_tests] βΊ products.spec.ts took 17.9s
|
π§ͺ Run api tests:
tests/pw/[site_setup] βΊ _site.setup.ts#L1
tests/pw/[site_setup] βΊ _site.setup.ts took 10.5s
|
π§ͺ Run api tests
1 failed
[api_tests] βΊ calculation.spec.ts:455:9 βΊ vendor coupon calculation test βΊ vendor coupon: single coupon
1 skipped
5 did not run
196 passed (3.0m)
|
Loading