Add acceptance tests

This commit is contained in:
Lukas Hirt
2020-09-09 13:52:47 +02:00
parent 51c39bbceb
commit ebbf1c8262
4 changed files with 71 additions and 10 deletions
@@ -42,3 +42,14 @@ When('the user enables user/users {string} using the WebUI', function (usernames
Then('the status indicator of user/users {string} should be {string} on the WebUI', function (usernames, status) {
return client.page.accountsPage().checkUsersStatus(usernames, status)
})
When(
'the user creates a new user with username {string}, email {email} and password {password} using the WebUI',
function (username, email, password) {
return client.page.accountsPage().createUser(username, email, password)
}
)
When('the user deletes user/users {string} using the WebUI', function (usernames) {
return client.page.accounts().deleteUsers(usernames)
})