Add a page reload to the role selection test

This commit is contained in:
Benedikt Kulmann committed 2020-08-21 16:18:25 +02:00
1 parent 15f2df6997
commit 3abf2bb110
2 files changed
+6

No files matched your search

@@ -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
@@ -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()
})