From 9d0f262672e8398a19a3f8b6c1635e56a4007c58 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Wed, 8 May 2024 17:25:03 -0400 Subject: [PATCH] Remove MDS selector for tenancy tab (#1937) Signed-off-by: Derek Ho --- .../apps/configuration/panels/tenant-list/tenant-list.tsx | 8 -------- .../multi-datasources/multi_datasources_enabled.spec.js | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/public/apps/configuration/panels/tenant-list/tenant-list.tsx b/public/apps/configuration/panels/tenant-list/tenant-list.tsx index 0b97c6ae1..6a4f53382 100644 --- a/public/apps/configuration/panels/tenant-list/tenant-list.tsx +++ b/public/apps/configuration/panels/tenant-list/tenant-list.tsx @@ -31,8 +31,6 @@ import { ExternalLink } from '../../utils/display-utils'; import { DocLinks } from '../../constants'; import { getDashboardsInfo } from '../../../../utils/dashboards-info-utils'; import { TenantInstructionView } from './tenant-instruction-view'; -import { LocalCluster } from '../../app-router'; -import { SecurityPluginTopNavMenu } from '../../top-nav-menu'; interface TenantListProps extends AppDependencies { tabID: string; @@ -135,12 +133,6 @@ export function TenantList(props: TenantListProps) { return ( <> - {}} - selectedDataSource={LocalCluster} - />

Dashboards multi-tenancy

diff --git a/test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js b/test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js index 2a1a0c4f7..c9f3ae989 100644 --- a/test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js +++ b/test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js @@ -159,7 +159,7 @@ describe('Multi-datasources enabled', () => { cy.visit(`http://localhost:5601/app/security-dashboards-plugin${localDataSourceUrl}#/tenants`); cy.contains('h1', 'Dashboards multi-tenancy'); - cy.get('[data-test-subj="dataSourceViewButton"]').should('contain', 'Local cluster'); + cy.get('[data-test-subj="dataSourceSelectableButton"]').should('not.exist'); }); it('Checks Service Accounts Tab', () => {