From 7605062b6e92f0fa387d0595fd78654e4f0dcd34 Mon Sep 17 00:00:00 2001 From: Robert Oskamp Date: Mon, 18 May 2020 13:48:50 +0200 Subject: [PATCH] Remove environemnt variable --- test/functional/page_objects/common_page.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/functional/page_objects/common_page.ts b/test/functional/page_objects/common_page.ts index 2d0dcb9d1f5d6..7810cce5c78bb 100644 --- a/test/functional/page_objects/common_page.ts +++ b/test/functional/page_objects/common_page.ts @@ -73,12 +73,10 @@ export function CommonPageProvider({ getService, getPageObjects }: FtrProviderCo const loginPage = currentUrl.includes('/login'); const wantedLoginPage = appUrl.includes('/login') || appUrl.includes('/logout'); - // Disable the welcome screen if the corresponding environment variable is set - // 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 - if (process.env.DISABLE_WELCOME_SCREEN) { - await browser.setLocalStorageItem('home:welcome:show', 'false'); - } + // 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');