diff --git a/ui/tests/acceptance/features/accounts.feature b/ui/tests/acceptance/features/accounts.feature index 455f267384..76ce564407 100644 --- a/ui/tests/acceptance/features/accounts.feature +++ b/ui/tests/acceptance/features/accounts.feature @@ -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 diff --git a/ui/tests/acceptance/stepDefinitions/accountsContext.js b/ui/tests/acceptance/stepDefinitions/accountsContext.js index b07eb340f2..1e8b3f9ad3 100644 --- a/ui/tests/acceptance/stepDefinitions/accountsContext.js +++ b/ui/tests/acceptance/stepDefinitions/accountsContext.js @@ -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() +})