Fix for create and updateVouchers tests (#3056)

* remove find(input) and fix checkIfDataAreNotNull place in updatevouchers

* restore find input
This commit is contained in:
Anna Szczęch 2023-02-02 09:59:55 +01:00 committed by GitHub
parent c8bb645ae8
commit e4db92be74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -64,11 +64,6 @@ describe("As an admin I want to create voucher", () => {
}); });
}, },
); );
cy.checkIfDataAreNotNull({
createdChannel,
dataForCheckout,
defaultChannel,
});
}); });
beforeEach(() => { beforeEach(() => {

View file

@ -51,8 +51,12 @@ describe("As an admin I want to update vouchers", () => {
shippingMethodName: shippingMethodResp.name, shippingMethodName: shippingMethodResp.name,
auth: "token", auth: "token",
}; };
cy.checkIfDataAreNotNull({
dataForCheckout,
defaultChannel,
product,
});
}, },
cy.checkIfDataAreNotNull({ dataForCheckout, defaultChannel, product }),
); );
}); });