forked from Wavyzz/dolibarr
List user feature file using api
Co-authored-by:Yamuna Adhikari<adhikariamuna4444@gmail.com>
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user