test for products, remove cy command

This commit is contained in:
Karolina Rakoczy 2021-02-26 15:34:35 +01:00
parent fde78fe874
commit 36dca95454
3 changed files with 2 additions and 5 deletions

View file

@ -12,7 +12,7 @@ class ProductDetails {
availableForPurchase
}
}`;
return cy.sendFrontShopRequestWithQuery(query);
return cy.sendRequestWithQuery(query, "token");
}
}
export default ProductDetails;

View file

@ -14,7 +14,7 @@ class Search {
}
}`;
return cy.sendFrontShopRequestWithQuery(query);
return cy.sendRequestWithQuery(query, "token");
}
}
export default Search;

View file

@ -39,9 +39,6 @@ Cypress.Commands.add("addAliasToGraphRequest", operationName => {
});
});
Cypress.Commands.add("sendFrontShopRequestWithQuery", query =>
cy.sendRequestWithQuery(query, "token")
);
Cypress.Commands.add("sendRequestWithQuery", (query, authorization = "auth") =>
cy.request({
body: {