Add basic test scenario

This commit is contained in:
Lukas Hirt
2020-08-21 11:45:04 +02:00
committed by Benedikt Kulmann
parent 74bb429a34
commit f8fa36381c
4 changed files with 54 additions and 5 deletions
@@ -11,3 +11,11 @@ Then('user {string} should be displayed in the accounts list on the WebUI', asyn
const userListed = await client.page.accountsPage().isUserListed(username)
return assert.strictEqual(userListed, username)
})
When('the users changes the role of user {string} to {string} using the WebUI', function (username, role) {
return client.page.accountsPage().selectRole(username, role)
})
Then('the displayed role of user {string} should be {string} on the WebUI', function (username, role) {
return client.page.accountsPage().checkUsersRole(username, role)
})