From 3abf2bb110350793602c72d29f4cc11e4757ef04 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Fri, 21 Aug 2020 16:18:25 +0200 Subject: [PATCH] Add a page reload to the role selection test --- ui/tests/acceptance/features/accounts.feature | 2 ++ ui/tests/acceptance/stepDefinitions/accountsContext.js | 4 ++++ 2 files changed, 6 insertions(+) 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() +})