fix login commands

This commit is contained in:
Karolina Rakoczy 2021-02-24 12:21:06 +01:00
parent 3a90d9bdc2
commit 095a5522d3

View file

@ -10,12 +10,6 @@ Cypress.Commands.add("loginUser", () =>
.click() .click()
); );
// Cypress.Commands.add("loginUserViaRequest", () => {
// cy.sendLoginRequest().then(resp => {
// window.sessionStorage.setItem("auth", resp.body.data.tokenCreate.token);
// });
// });
Cypress.Commands.add("loginInShop", () => { Cypress.Commands.add("loginInShop", () => {
cy.loginUserViaRequest("token"); cy.loginUserViaRequest("token");
}); });