2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/test/acceptance/stepDefinitions/logoutContext.js
SwikritiT a248921d73 List user feature file using api
Co-authored-by:Yamuna Adhikari<adhikariamuna4444@gmail.com>
2020-10-23 11:06:56 +05:45

15 lines
454 B
JavaScript

const {When, Then} = require('cucumber');
const {client} = require('nightwatch-api');
When('the user opens the user profile using the webUI', function () {
return client.page.logoutPage().userOpensProfile();
});
When('the user logs out using the webUI', function () {
return client.page.logoutPage().userLogsOut();
});
Then('the user should be logged out successfully', function () {
return client.page.loginPage().waitForLoginPage();
});