test for products, remove cy command
This commit is contained in:
parent
fde78fe874
commit
36dca95454
3 changed files with 2 additions and 5 deletions
|
@ -12,7 +12,7 @@ class ProductDetails {
|
||||||
availableForPurchase
|
availableForPurchase
|
||||||
}
|
}
|
||||||
}`;
|
}`;
|
||||||
return cy.sendFrontShopRequestWithQuery(query);
|
return cy.sendRequestWithQuery(query, "token");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default ProductDetails;
|
export default ProductDetails;
|
||||||
|
|
|
@ -14,7 +14,7 @@ class Search {
|
||||||
}
|
}
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
return cy.sendFrontShopRequestWithQuery(query);
|
return cy.sendRequestWithQuery(query, "token");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default Search;
|
export default Search;
|
||||||
|
|
|
@ -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") =>
|
Cypress.Commands.add("sendRequestWithQuery", (query, authorization = "auth") =>
|
||||||
cy.request({
|
cy.request({
|
||||||
body: {
|
body: {
|
||||||
|
|
Loading…
Reference in a new issue