mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
fix step_definition for e2e test
This commit is contained in:
parent
010e17ee62
commit
b2eab93979
@ -21,16 +21,26 @@ When(
|
|||||||
req.body.hasOwnProperty("query") &&
|
req.body.hasOwnProperty("query") &&
|
||||||
req.body.query.includes("mutation")
|
req.body.query.includes("mutation")
|
||||||
) {
|
) {
|
||||||
|
<<<<<<< Updated upstream
|
||||||
req.alias = "login";
|
req.alias = "login";
|
||||||
|
=======
|
||||||
|
req.alias = "loging";
|
||||||
|
>>>>>>> Stashed changes
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
loginPage.enterEmail(email);
|
loginPage.enterEmail(email);
|
||||||
loginPage.enterPassword(password);
|
loginPage.enterPassword(password);
|
||||||
loginPage.submitLogin();
|
loginPage.submitLogin();
|
||||||
|
<<<<<<< Updated upstream
|
||||||
cy.wait("@login").then((interception) => {
|
cy.wait("@login").then((interception) => {
|
||||||
expect(interception.response.statusCode).equals(200);
|
expect(interception.response.statusCode).equals(200);
|
||||||
expect(JSON.stringify(interception.response.body)).contains(email);
|
expect(JSON.stringify(interception.response.body)).contains(email);
|
||||||
|
=======
|
||||||
|
|
||||||
|
cy.wait("@loging").then((interception) => {
|
||||||
|
expect(interception.response.statusCode).equals(200);
|
||||||
|
>>>>>>> Stashed changes
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user