2
0
forked from Wavyzz/dolibarr
Files
dolibarr-fork/test/acceptance/stepDefinitions/listUsersContext.js
2020-10-08 12:59:56 +05:45

15 lines
544 B
JavaScript

const { When, Then } = require('cucumber');
const { client } = require('nightwatch-api');
When('the administrator browses to the list of users page using the webUI', function () {
return client.page.homePage().browsedToListOfUsers();
});
Then('following users should be displayed in the users list', function (dataTable) {
return client.page.listUsersPage().listOfUsersDisplayed(dataTable);
});
Then('the number of created users should be {int}', function (number) {
return client.page.listUsersPage().numberOfUsersDisplayed(number);
});