Code review feedback

This commit is contained in:
zhongruige 2020-12-29 09:10:22 -07:00
parent aeb0f5861f
commit e3765dc650
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- Merchant Order Status Filter tests
- Merchant Order Refund tests
- Merchant Apply Coupon tests
- Added new config variable for Simple Product price to `tests/e2e/env/config/default.json`. Defaults to 9.99
## Fixed

View File

@ -1,4 +1,4 @@
/* eslint-disable jest/no-export */
/* eslint-disable jest/no-export, jest/no-standalone-expect */
/**
* Internal dependencies
@ -35,6 +35,9 @@ const runOrderApplyCouponTest = () => {
// We need to remove any listeners on the `dialog` event otherwise we can't catch the dialog below
page.removeAllListeners('dialog'),
]);
// Make sure the simple product price is greater than the coupon amount
await expect(simpleProductPrice).toBeGreaterThan(5.00);
} );
it('can apply a coupon', async () => {