From f472d3cc0f47c77f6cf18383b4707fabc01763ea Mon Sep 17 00:00:00 2001 From: zhongruige Date: Tue, 29 Dec 2020 10:38:36 -0700 Subject: [PATCH] Cast to number for the comparison --- .../specs/merchant/wp-admin-order-apply-coupon.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/core-tests/specs/merchant/wp-admin-order-apply-coupon.test.js b/tests/e2e/core-tests/specs/merchant/wp-admin-order-apply-coupon.test.js index f78fd4061b0..01635b1fc34 100644 --- a/tests/e2e/core-tests/specs/merchant/wp-admin-order-apply-coupon.test.js +++ b/tests/e2e/core-tests/specs/merchant/wp-admin-order-apply-coupon.test.js @@ -37,7 +37,7 @@ const runOrderApplyCouponTest = () => { ]); // Make sure the simple product price is greater than the coupon amount - await expect(simpleProductPrice).toBeGreaterThan(5.00); + await expect(Number(simpleProductPrice)).toBeGreaterThan(5.00); } ); it('can apply a coupon', async () => {