Skip to content

Commit

Permalink
Add welcome screen disabling to common page (elastic#66713)
Browse files Browse the repository at this point in the history
This PR adds logic to disable the welcome screen to the common_page which is already used in the x-pack security_page.
  • Loading branch information
pheyos committed May 27, 2020
1 parent 909d418 commit dbbd090
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/functional/page_objects/common_page.ts
Expand Up @@ -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')) {
Expand Down

0 comments on commit dbbd090

Please sign in to comment.