From 245b926f27e901db7768b88716ec7a316b2b6eda Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Wed, 27 May 2020 15:30:35 +0200 Subject: [PATCH] Add welcome screen disabling to common page (#66713) (#67456) This PR adds logic to disable the welcome screen to the common_page which is already used in the x-pack security_page. --- test/functional/page_objects/common_page.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/functional/page_objects/common_page.ts b/test/functional/page_objects/common_page.ts index ae5bf58d6436d..8d8379c263f19 100644 --- a/test/functional/page_objects/common_page.ts +++ b/test/functional/page_objects/common_page.ts @@ -73,6 +73,11 @@ export function CommonPageProvider({ getService, getPageObjects }: FtrProviderCo const loginPage = currentUrl.includes('/login'); const wantedLoginPage = appUrl.includes('/login') || appUrl.includes('/logout'); + // Disable the welcome screen. This is relevant for environments + // which don't allow to use the yml setting, e.g. cloud production. + // It is done here so it applies to logins but also to a login re-use. + await browser.setLocalStorageItem('home:welcome:show', 'false'); + if (loginPage && !wantedLoginPage) { log.debug('Found login page'); if (config.get('security.disableTestUser')) {