Skip to content

Commit

Permalink
Add welcome screen disabling to common page (#66713) (#67457)
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 authored May 27, 2020
1 parent e3a82c7 commit 8d48f7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/functional/page_objects/common_page.ts
Original file line number Diff line number Diff line change
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 8d48f7b

Please sign in to comment.