mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Send To Background UI] Isolate functional test for wip feature (#84833)
* [Send To Background UI] Isolate functional test for wip feature * add tests to cigroup 3
This commit is contained in:
parent
0dbe1cd006
commit
880c8d35e8
10 changed files with 62 additions and 9 deletions
|
@ -67,6 +67,7 @@ const onlyNotInCoverageTests = [
|
|||
require.resolve('../test/security_solution_endpoint_api_int/config.ts'),
|
||||
require.resolve('../test/fleet_api_integration/config.ts'),
|
||||
require.resolve('../test/functional_vis_wizard/config.ts'),
|
||||
require.resolve('../test/send_search_to_background_integration/config.ts'),
|
||||
require.resolve('../test/saved_object_tagging/functional/config.ts'),
|
||||
require.resolve('../test/saved_object_tagging/api_integration/security_and_spaces/config.ts'),
|
||||
require.resolve('../test/saved_object_tagging/api_integration/tagging_api/config.ts'),
|
||||
|
|
|
@ -13,7 +13,6 @@ export default function ({ loadTestFile }: FtrProviderContext) {
|
|||
loadTestFile(require.resolve('./preserve_url'));
|
||||
loadTestFile(require.resolve('./reporting'));
|
||||
loadTestFile(require.resolve('./drilldowns'));
|
||||
loadTestFile(require.resolve('./async_search'));
|
||||
loadTestFile(require.resolve('./_async_dashboard'));
|
||||
});
|
||||
}
|
||||
|
|
|
@ -89,7 +89,6 @@ export default async function ({ readConfigFile }) {
|
|||
'--xpack.encryptedSavedObjects.encryptionKey="DkdXazszSCYexXqz4YktBGHCRkV6hyNK"',
|
||||
'--timelion.ui.enabled=true',
|
||||
'--savedObjects.maxImportPayloadBytes=10485760', // for OSS test management/_import_objects
|
||||
'--xpack.data_enhanced.search.sendToBackground.enabled=true', // enable WIP send to background UI
|
||||
],
|
||||
},
|
||||
uiSettings: {
|
||||
|
|
|
@ -56,7 +56,6 @@ import {
|
|||
DashboardDrilldownsManageProvider,
|
||||
DashboardPanelTimeRangeProvider,
|
||||
} from './dashboard';
|
||||
import { SendToBackgroundProvider } from './data';
|
||||
|
||||
// define the name and providers for services that should be
|
||||
// available to your tests. If you don't specify anything here
|
||||
|
@ -104,5 +103,4 @@ export const services = {
|
|||
dashboardDrilldownPanelActions: DashboardDrilldownPanelActionsProvider,
|
||||
dashboardDrilldownsManage: DashboardDrilldownsManageProvider,
|
||||
dashboardPanelTimeRange: DashboardPanelTimeRangeProvider,
|
||||
sendToBackground: SendToBackgroundProvider,
|
||||
};
|
||||
|
|
37
x-pack/test/send_search_to_background_integration/config.ts
Normal file
37
x-pack/test/send_search_to_background_integration/config.ts
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { resolve } from 'path';
|
||||
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
||||
import { services as functionalServices } from '../functional/services';
|
||||
import { services } from './services';
|
||||
|
||||
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
||||
const xpackFunctionalConfig = await readConfigFile(require.resolve('../functional/config'));
|
||||
|
||||
return {
|
||||
// default to the xpack functional config
|
||||
...xpackFunctionalConfig.getAll(),
|
||||
|
||||
junit: {
|
||||
reportName: 'X-Pack Background Search UI (Enabled WIP Feature)',
|
||||
},
|
||||
|
||||
testFiles: [resolve(__dirname, './tests/apps/dashboard/async_search')],
|
||||
|
||||
kbnTestServer: {
|
||||
...xpackFunctionalConfig.get('kbnTestServer'),
|
||||
serverArgs: [
|
||||
...xpackFunctionalConfig.get('kbnTestServer.serverArgs'),
|
||||
'--xpack.data_enhanced.search.sendToBackground.enabled=true', // enable WIP send to background UI
|
||||
],
|
||||
},
|
||||
services: {
|
||||
...functionalServices,
|
||||
...services,
|
||||
},
|
||||
};
|
||||
}
|
11
x-pack/test/send_search_to_background_integration/ftr_provider_context.d.ts
vendored
Normal file
11
x-pack/test/send_search_to_background_integration/ftr_provider_context.d.ts
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { GenericFtrProviderContext } from '@kbn/test/types/ftr';
|
||||
import { pageObjects } from '../functional/page_objects';
|
||||
import { services } from './services';
|
||||
|
||||
export type FtrProviderContext = GenericFtrProviderContext<typeof services, typeof pageObjects>;
|
|
@ -4,4 +4,10 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
export { SendToBackgroundProvider } from './send_to_background';
|
||||
import { services as functionalServices } from '../../functional/services';
|
||||
import { SendToBackgroundProvider } from './send_to_background';
|
||||
|
||||
export const services = {
|
||||
...functionalServices,
|
||||
sendToBackground: SendToBackgroundProvider,
|
||||
};
|
|
@ -4,8 +4,8 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { WebElementWrapper } from '../../../../../test/functional/services/lib/web_element_wrapper';
|
||||
import { FtrProviderContext } from '../ftr_provider_context';
|
||||
import { WebElementWrapper } from '../../../../test/functional/services/lib/web_element_wrapper';
|
||||
|
||||
const SEND_TO_BACKGROUND_TEST_SUBJ = 'backgroundSessionIndicator';
|
||||
const SEND_TO_BACKGROUND_POPOVER_CONTENT_TEST_SUBJ = 'backgroundSessionIndicatorPopoverContainer';
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const es = getService('es');
|
|
@ -3,13 +3,15 @@
|
|||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
import { FtrProviderContext } from '../../../../ftr_provider_context';
|
||||
|
||||
export default function ({ loadTestFile, getService }: FtrProviderContext) {
|
||||
const kibanaServer = getService('kibanaServer');
|
||||
const esArchiver = getService('esArchiver');
|
||||
|
||||
describe('async search', function () {
|
||||
this.tags('ciGroup3');
|
||||
|
||||
before(async () => {
|
||||
await esArchiver.loadIfNeeded('logstash_functional');
|
||||
await esArchiver.load('dashboard/async_search');
|
Loading…
Add table
Add a link
Reference in a new issue