Add a page reload to the role selection test

This commit is contained in:
Benedikt Kulmann
2020-08-21 16:18:25 +02:00
parent 15f2df6997
commit 3abf2bb110
2 changed files with 6 additions and 0 deletions

View File

@@ -17,3 +17,5 @@ Feature: Accounts
Then user "einstein" should be displayed in the accounts list on the WebUI
When the user changes the role of user "einstein" to "Admin" using the WebUI
Then the displayed role of user "einstein" should be "Admin" on the WebUI
When the user reloads the current page of the webUI
Then the displayed role of user "einstein" should be "Admin" on the WebUI

View File

@@ -19,3 +19,7 @@ When('the user changes the role of user {string} to {string} using the WebUI', f
Then('the displayed role of user {string} should be {string} on the WebUI', function (username, role) {
return client.page.accountsPage().checkUsersRole(username, role)
})
When('the user reloads the current page of the webUI', function () {
return client.refresh()
})