diff --git a/deps/rabbitmq_management/priv/www/js/dispatcher.js b/deps/rabbitmq_management/priv/www/js/dispatcher.js index 0a472c8c391a..e0e520715fe4 100644 --- a/deps/rabbitmq_management/priv/www/js/dispatcher.js +++ b/deps/rabbitmq_management/priv/www/js/dispatcher.js @@ -341,7 +341,6 @@ dispatcher_add(function(sammy) { oauth_initiateLogout(); }else { go_to_home() -// location.reload(); } }); diff --git a/deps/rabbitmq_management/priv/www/js/oidc-oauth/helper.js b/deps/rabbitmq_management/priv/www/js/oidc-oauth/helper.js index 03820e1a544e..cd364022f97b 100644 --- a/deps/rabbitmq_management/priv/www/js/oidc-oauth/helper.js +++ b/deps/rabbitmq_management/priv/www/js/oidc-oauth/helper.js @@ -225,6 +225,9 @@ function oauth_redirectToHome(oauth) { function go_to(path) { location.href = rabbit_path_prefix() + "/" + path } +function go_to_home() { + location.href = rabbit_path_prefix() + "/" +} function go_to_authority() { location.href = oauth.authority } diff --git a/deps/rabbitmq_management/selenium/test/basic-auth/logout.js b/deps/rabbitmq_management/selenium/test/basic-auth/logout.js index 1a3ab8881e06..6493c7059654 100644 --- a/deps/rabbitmq_management/selenium/test/basic-auth/logout.js +++ b/deps/rabbitmq_management/selenium/test/basic-auth/logout.js @@ -22,6 +22,7 @@ describe('When a logged in user', function () { it('logs out', async function () { await loginPage.login('guest', 'guest') await overview.isLoaded() + await overview.selectRefreshOption("Do not refresh") await overview.logout() await loginPage.isLoaded() }) diff --git a/deps/rabbitmq_management/selenium/test/pageobjects/BasePage.js b/deps/rabbitmq_management/selenium/test/pageobjects/BasePage.js index f44697d926d4..d8b620931033 100644 --- a/deps/rabbitmq_management/selenium/test/pageobjects/BasePage.js +++ b/deps/rabbitmq_management/selenium/test/pageobjects/BasePage.js @@ -4,7 +4,7 @@ const MENU_TABS = By.css('div#menu ul#tabs') const USER = By.css('li#logout') const LOGOUT_FORM = By.css('li#logout form') const SELECT_VHOSTS = By.css('select#show-vhost') - +const SELECT_REFRESH = By.css('ul#topnav li#interval select#update-every') const OVERVIEW_TAB = By.css('div#menu ul#tabs li#overview') const CONNECTIONS_TAB = By.css('div#menu ul#tabs li#connections') const CHANNELS_TAB = By.css('div#menu ul#tabs li#channels') @@ -36,7 +36,9 @@ module.exports = class BasePage { async getUser () { return this.getText(USER) } - + async selectRefreshOption(option) { + return this.selectOption(SELECT_REFRESH, option) + } async waitForOverviewTab() { return this.waitForDisplayed(OVERVIEW_TAB) }