Skip to content

Commit

Permalink
Remove environemnt variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed May 18, 2020
1 parent a38a39d commit 7605062
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/functional/page_objects/common_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7605062

Please sign in to comment.