From b2eab939797f5a5fe461b2237e6c394d8d53c643 Mon Sep 17 00:00:00 2001 From: mahula Date: Thu, 2 Feb 2023 21:59:07 +0100 Subject: [PATCH] fix step_definition for e2e test --- .../step_definitions/user_authentication_steps.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/e2e-tests/cypress/tests/cypress/support/step_definitions/user_authentication_steps.ts b/e2e-tests/cypress/tests/cypress/support/step_definitions/user_authentication_steps.ts index d469180b3..50701098c 100644 --- a/e2e-tests/cypress/tests/cypress/support/step_definitions/user_authentication_steps.ts +++ b/e2e-tests/cypress/tests/cypress/support/step_definitions/user_authentication_steps.ts @@ -21,16 +21,26 @@ When( req.body.hasOwnProperty("query") && req.body.query.includes("mutation") ) { +<<<<<<< Updated upstream req.alias = "login"; +======= + req.alias = "loging"; +>>>>>>> Stashed changes } }); loginPage.enterEmail(email); loginPage.enterPassword(password); loginPage.submitLogin(); +<<<<<<< Updated upstream cy.wait("@login").then((interception) => { expect(interception.response.statusCode).equals(200); expect(JSON.stringify(interception.response.body)).contains(email); +======= + + cy.wait("@loging").then((interception) => { + expect(interception.response.statusCode).equals(200); +>>>>>>> Stashed changes }); } );