Remove unnecessary code from test
This commit is contained in:
parent
c27aa94a80
commit
c7cf42020f
|
@ -27,8 +27,6 @@ const {
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
const applyCouponToCart = async ( couponCode ) => {
|
const applyCouponToCart = async ( couponCode ) => {
|
||||||
await expect(page).toClick('a', {text: 'Click here to enter your code'});
|
|
||||||
await uiUnblocked();
|
|
||||||
await clearAndFillInput('#coupon_code', couponCode);
|
await clearAndFillInput('#coupon_code', couponCode);
|
||||||
await expect(page).toClick('button', {text: 'Apply coupon'});
|
await expect(page).toClick('button', {text: 'Apply coupon'});
|
||||||
await uiUnblocked();
|
await uiUnblocked();
|
||||||
|
@ -49,7 +47,7 @@ const runCartApplyCouponsTest = () => {
|
||||||
let couponFixedCart;
|
let couponFixedCart;
|
||||||
let couponPercentage;
|
let couponPercentage;
|
||||||
let couponFixedProduct;
|
let couponFixedProduct;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await merchant.login();
|
await merchant.login();
|
||||||
await createSimpleProduct();
|
await createSimpleProduct();
|
||||||
|
|
Loading…
Reference in New Issue