Remove unnecessary code from test

This commit is contained in:
Veljko 2021-02-10 12:29:56 +01:00
parent c27aa94a80
commit c7cf42020f
1 changed files with 1 additions and 3 deletions

View File

@ -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();