2020-10-15 09:34:07 +02:00
|
|
|
const {When, Then} = require('cucumber');
|
|
|
|
|
const {client} = require('nightwatch-api');
|
2020-08-18 06:45:22 +02:00
|
|
|
|
|
|
|
|
When('the user opens the user profile using the webUI', function () {
|
2020-10-15 09:34:07 +02:00
|
|
|
return client.page.logoutPage().userOpensProfile();
|
2020-08-18 06:45:22 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
When('the user logs out using the webUI', function () {
|
2020-10-15 09:34:07 +02:00
|
|
|
return client.page.logoutPage().userLogsOut();
|
2020-08-18 06:45:22 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Then('the user should be logged out successfully', function () {
|
2020-10-15 09:34:07 +02:00
|
|
|
return client.page.loginPage().waitForLoginPage();
|
2020-08-18 06:45:22 +02:00
|
|
|
});
|