From 5ea1bd1b2325b83fde4ec5819d02d592a0a38f74 Mon Sep 17 00:00:00 2001 From: Catherine Liu Date: Wed, 4 Nov 2020 14:11:28 -0700 Subject: [PATCH] Fixed ts errors --- .../security/public/nav_control/nav_control_component.scss | 2 +- .../public/nav_control/nav_control_component.test.tsx | 2 +- .../security/public/nav_control/nav_control_service.test.ts | 6 ------ x-pack/plugins/security/public/plugin.tsx | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/x-pack/plugins/security/public/nav_control/nav_control_component.scss b/x-pack/plugins/security/public/nav_control/nav_control_component.scss index 80fb3b6469d9d..9ec5cd2d3689d 100644 --- a/x-pack/plugins/security/public/nav_control/nav_control_component.scss +++ b/x-pack/plugins/security/public/nav_control/nav_control_component.scss @@ -1,5 +1,5 @@ .securityNavControlComponent__userMenu { - .euiPopoverTitle { + .euiContextMenuPanelTitle { text-transform: none; } } \ No newline at end of file diff --git a/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx b/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx index 8da89beef18bd..1da91e80d062d 100644 --- a/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx +++ b/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx @@ -113,7 +113,7 @@ describe('SecurityNavControl', () => { expect(findTestSubject(wrapper, 'logoutLink')).toHaveLength(1); }); - it('renders a popover with additional user links registered by other plugins', async () => { + it('renders a popover with additional user menu links registered by other plugins', async () => { const props = { user: Promise.resolve({ full_name: 'foo' }) as Promise, editProfileUrl: '', diff --git a/x-pack/plugins/security/public/nav_control/nav_control_service.test.ts b/x-pack/plugins/security/public/nav_control/nav_control_service.test.ts index 087e8ec550fde..acf62f3376b8b 100644 --- a/x-pack/plugins/security/public/nav_control/nav_control_service.test.ts +++ b/x-pack/plugins/security/public/nav_control/nav_control_service.test.ts @@ -11,7 +11,6 @@ import { SecurityNavControlService } from '.'; import { SecurityLicenseService } from '../../common/licensing'; import { nextTick } from 'test_utils/enzyme_helpers'; import { securityMock } from '../mocks'; -import { cloudMock } from '../../../cloud/public/mocks'; import { mockAuthenticatedUser } from '../../common/model/authenticated_user.mock'; const validLicense = { @@ -40,7 +39,6 @@ describe('SecurityNavControlService', () => { securityLicense: new SecurityLicenseService().setup({ license$ }).license, authc: mockSecuritySetup.authc, logoutUrl: '/some/logout/url', - cloud: cloudMock.createSetup(), }); const coreStart = coreMock.createStart(); @@ -104,7 +102,6 @@ describe('SecurityNavControlService', () => { securityLicense: new SecurityLicenseService().setup({ license$ }).license, authc: securityMock.createSetup().authc, logoutUrl: '/some/logout/url', - cloud: cloudMock.createSetup(), }); const coreStart = coreMock.createStart(); @@ -125,7 +122,6 @@ describe('SecurityNavControlService', () => { securityLicense: new SecurityLicenseService().setup({ license$ }).license, authc: securityMock.createSetup().authc, logoutUrl: '/some/logout/url', - cloud: cloudMock.createSetup(), }); const coreStart = coreMock.createStart(); @@ -143,7 +139,6 @@ describe('SecurityNavControlService', () => { securityLicense: new SecurityLicenseService().setup({ license$ }).license, authc: securityMock.createSetup().authc, logoutUrl: '/some/logout/url', - cloud: cloudMock.createSetup(), }); const coreStart = coreMock.createStart(); @@ -166,7 +161,6 @@ describe('SecurityNavControlService', () => { securityLicense: new SecurityLicenseService().setup({ license$ }).license, authc: securityMock.createSetup().authc, logoutUrl: '/some/logout/url', - cloud: cloudMock.createSetup(), }); const coreStart = coreMock.createStart(); diff --git a/x-pack/plugins/security/public/plugin.tsx b/x-pack/plugins/security/public/plugin.tsx index 57e64bbd3cd9d..f94772c43dd89 100644 --- a/x-pack/plugins/security/public/plugin.tsx +++ b/x-pack/plugins/security/public/plugin.tsx @@ -20,7 +20,6 @@ import { } from '../../../../src/plugins/home/public'; import { LicensingPluginSetup } from '../../licensing/public'; import { ManagementSetup, ManagementStart } from '../../../../src/plugins/management/public'; -import { CloudSetup } from '../../cloud/public'; import { ISessionTimeout, SessionExpired,