The login function is passed successfully, but the test run end directly after it, and doesn't continue to the other code line in entryPre function -i tried with other simple functions with console.log() and it passes successfully-
I have in an x_test.js file :
Scenario('Check Employees', async ({I, entryPage, mainPage}) => {
await entryPage.entryPre(user,y);
.
.
.
});
and on entryPage.js :
entryPre(user, y){
try {
mainPage.login(user);
console.log(y);
//pause();
} catch (err) {
console.error(err);
}
},
and at mainPage.js :
login() {
I.say("User Login");
I.amOutsideAngularApp();
I.amOnPage('/')
.
.
.
I.click(this.loginBtn);
},