mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
## Summary This PR makes few changes: - extend [kbn-test-subj-selector](https://github.com/elastic/kibana/compare/main...dmlemeshko:kibana:ftr/add-dataViews-service?expand=1#diff-43f2401dd3f9c11b6cbd75c8801a6ccbbe1d4db5a19e907f263c4932f810c73c) with wildcard (*) support: ``` testSubjSelector('*dataView-switch-link') => [data-test-subj*="dataView-switch-link"] ``` It allows us to search for DOM elements with the common text part in `data-test-subj` attribute, e.g. `lns-dataView-switch-link` & `discover-dataView-switch-link` - add new FTR service [dataViews](test/functional/apps/discover/group4/_adhoc_data_views.ts) to unify mostly identical code related to data views across multiple page objects (lens, discover, unified_search, dashboard) It is not a big win in terms of code cleanup, but should save some time whenever we will need to make logic updates.
102 lines
4 KiB
TypeScript
102 lines
4 KiB
TypeScript
/*
|
|
* 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 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import { commonFunctionalUIServices } from '@kbn/ftr-common-functional-ui-services';
|
|
import { services as commonServiceProviders } from '../../common/services';
|
|
|
|
import { AppsMenuService } from './apps_menu';
|
|
import {
|
|
FailureDebuggingProvider,
|
|
PngService,
|
|
ScreenshotsService,
|
|
SnapshotsService,
|
|
} from './common';
|
|
import { ComboBoxService } from './combo_box';
|
|
import { SelectableService } from './selectable';
|
|
import {
|
|
DashboardAddPanelService,
|
|
DashboardReplacePanelService,
|
|
DashboardExpectService,
|
|
DashboardPanelActionsService,
|
|
DashboardCustomizePanelProvider,
|
|
DashboardBadgeActionsProvider,
|
|
DashboardVisualizationsService,
|
|
DashboardDrilldownPanelActionsProvider,
|
|
DashboardDrilldownsManageProvider,
|
|
} from './dashboard';
|
|
import { DocTableService } from './doc_table';
|
|
import { EmbeddingService } from './embedding';
|
|
import { FilterBarService } from './filter_bar';
|
|
import { FlyoutService } from './flyout';
|
|
import { GlobalNavService } from './global_nav';
|
|
import { InspectorService } from './inspector';
|
|
import { FieldEditorService } from './field_editor';
|
|
import { ManagementMenuService } from './management';
|
|
import { QueryBarService } from './query_bar';
|
|
import { RenderableService } from './renderable';
|
|
import { DataGridService } from './data_grid';
|
|
import {
|
|
PieChartService,
|
|
ElasticChartService,
|
|
VegaDebugInspectorViewService,
|
|
} from './visualizations';
|
|
import { ListingTableService } from './listing_table';
|
|
import { SavedQueryManagementComponentService } from './saved_query_management_component';
|
|
import { KibanaSupertestProvider } from './supertest';
|
|
import { MenuToggleService } from './menu_toggle';
|
|
import { MonacoEditorService } from './monaco_editor';
|
|
import { UsageCollectionService } from './usage_collection';
|
|
import { SavedObjectsFinderService } from './saved_objects_finder';
|
|
import { DashboardSettingsProvider } from './dashboard/dashboard_settings';
|
|
import { ESQLService } from './esql';
|
|
import { DataViewsService } from './data_views';
|
|
|
|
export const services = {
|
|
...commonServiceProviders,
|
|
...commonFunctionalUIServices,
|
|
filterBar: FilterBarService,
|
|
queryBar: QueryBarService,
|
|
docTable: DocTableService,
|
|
png: PngService,
|
|
screenshots: ScreenshotsService,
|
|
snapshots: SnapshotsService,
|
|
failureDebugging: FailureDebuggingProvider,
|
|
listingTable: ListingTableService,
|
|
dashboardVisualizations: DashboardVisualizationsService,
|
|
dashboardExpect: DashboardExpectService,
|
|
dashboardAddPanel: DashboardAddPanelService,
|
|
dashboardReplacePanel: DashboardReplacePanelService,
|
|
dashboardPanelActions: DashboardPanelActionsService,
|
|
dashboardCustomizePanel: DashboardCustomizePanelProvider,
|
|
dashboardBadgeActions: DashboardBadgeActionsProvider,
|
|
dashboardDrilldownPanelActions: DashboardDrilldownPanelActionsProvider,
|
|
dashboardDrilldownsManage: DashboardDrilldownsManageProvider,
|
|
dashboardSettings: DashboardSettingsProvider,
|
|
dataViews: DataViewsService,
|
|
flyout: FlyoutService,
|
|
comboBox: ComboBoxService,
|
|
selectable: SelectableService,
|
|
dataGrid: DataGridService,
|
|
embedding: EmbeddingService,
|
|
renderable: RenderableService,
|
|
pieChart: PieChartService,
|
|
inspector: InspectorService,
|
|
fieldEditor: FieldEditorService,
|
|
vegaDebugInspector: VegaDebugInspectorViewService,
|
|
appsMenu: AppsMenuService,
|
|
globalNav: GlobalNavService,
|
|
savedQueryManagementComponent: SavedQueryManagementComponentService,
|
|
elasticChart: ElasticChartService,
|
|
supertest: KibanaSupertestProvider,
|
|
managementMenu: ManagementMenuService,
|
|
monacoEditor: MonacoEditorService,
|
|
menuToggle: MenuToggleService,
|
|
usageCollection: UsageCollectionService,
|
|
savedObjectsFinder: SavedObjectsFinderService,
|
|
esql: ESQLService,
|
|
};
|