-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing 'showNavLinks' config option and displaying Avatar menu for …
…serverless (#162140) ## Summary Closes #160141 The avatar menu needs to be displayed for serverless. It was previously required to be hidden in serverless, so a config 'showNavLinks' was added. This config is no longer needed, so it has been removed. ## Testing Start KB with the `--serverless` flag and login as `elastic`. The Avatar should appear in the top right coner.
- Loading branch information
1 parent
f981722
commit 7770ccc
Showing
11 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
x-pack/test_serverless/functional/test_suites/common/security/navigation/avatar_menu.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { FtrProviderContext } from '../../../../ftr_provider_context'; | ||
|
||
export default function ({ getPageObject, getService }: FtrProviderContext) { | ||
const svlCommonPage = getPageObject('svlCommonPage'); | ||
const svlCommonNavigation = getService('svlCommonNavigation'); | ||
|
||
describe('Avatar menu', function () { | ||
it('is displayed', async () => { | ||
await svlCommonNavigation.navigateToKibanaHome(); | ||
await svlCommonPage.assertUserAvatarExists(); | ||
}); | ||
|
||
it('displays User Menu when clicked', async () => { | ||
await svlCommonNavigation.navigateToKibanaHome(); | ||
await svlCommonPage.clickUserAvatar(); | ||
await svlCommonPage.assertUserMenuExists(); | ||
}); | ||
}); | ||
} |