2
0
forked from Wavyzz/dolibarr

List user feature file using api

Co-authored-by:Yamuna Adhikari<adhikariamuna4444@gmail.com>
This commit is contained in:
SwikritiT
2020-10-15 13:19:07 +05:45
parent 81543df5e4
commit a248921d73
13 changed files with 478 additions and 374 deletions

View File

@@ -1,14 +1,14 @@
const { When, Then } = require('cucumber');
const { client } = require('nightwatch-api');
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();
return client.page.logoutPage().userOpensProfile();
});
When('the user logs out using the webUI', function () {
return client.page.logoutPage().userLogsOut();
return client.page.logoutPage().userLogsOut();
});
Then('the user should be logged out successfully', function () {
return client.page.loginPage().waitForLoginPage();
return client.page.loginPage().waitForLoginPage();
});