[Search Sessions] Rename search sessions functional tests. Remove wip mention (#95330)

This commit is contained in:
Anton Dosov 2021-03-26 18:08:46 +01:00 committed by GitHub
parent 21192222fd
commit ce6641bac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 9 additions and 12 deletions

1
.github/CODEOWNERS vendored
View file

@ -59,6 +59,7 @@
/x-pack/plugins/embeddable_enhanced/ @elastic/kibana-app-services
/x-pack/plugins/ui_actions_enhanced/ @elastic/kibana-app-services
/x-pack/plugins/runtime_fields @elastic/kibana-app-services
/x-pack/test/search_sessions_integration/ @elastic/kibana-app-services
#CC# /src/plugins/bfetch/ @elastic/kibana-app-services
#CC# /src/plugins/index_pattern_management/ @elastic/kibana-app-services
#CC# /src/plugins/inspector/ @elastic/kibana-app-services

View file

@ -74,7 +74,7 @@ const onlyNotInCoverageTests = [
require.resolve('../test/reporting_api_integration/reporting_without_security.config.ts'),
require.resolve('../test/security_solution_endpoint_api_int/config.ts'),
require.resolve('../test/fleet_api_integration/config.ts'),
require.resolve('../test/send_search_to_background_integration/config.ts'),
require.resolve('../test/search_sessions_integration/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'),
require.resolve('../test/examples/config.ts'),

View file

@ -32,7 +32,7 @@ export function SearchSessionsProvider({ getService }: FtrProviderContext) {
const browser = getService('browser');
const supertest = getService('supertest');
return new (class SendToBackgroundService {
return new (class SearchSessionsService {
public async find(): Promise<WebElementWrapper> {
return testSubjects.find(SEARCH_SESSION_INDICATOR_TEST_SUBJ);
}

View file

@ -17,7 +17,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
...xpackFunctionalConfig.getAll(),
junit: {
reportName: 'X-Pack Background Search UI (Enabled WIP Feature)',
reportName: 'X-Pack Search Sessions Integration',
},
testFiles: [
@ -29,10 +29,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
kbnTestServer: {
...xpackFunctionalConfig.get('kbnTestServer'),
serverArgs: [
...xpackFunctionalConfig.get('kbnTestServer.serverArgs'),
'--xpack.data_enhanced.search.sessions.enabled=true', // enable WIP send to background UI
],
serverArgs: [...xpackFunctionalConfig.get('kbnTestServer.serverArgs')],
},
services,
};

View file

@ -33,8 +33,8 @@ export default function ({ loadTestFile, getService, getPageObjects }: FtrProvid
});
loadTestFile(require.resolve('./async_search'));
loadTestFile(require.resolve('./send_to_background'));
loadTestFile(require.resolve('./send_to_background_relative_time'));
loadTestFile(require.resolve('./save_search_session'));
loadTestFile(require.resolve('./save_search_session_relative_time'));
loadTestFile(require.resolve('./search_sessions_tour'));
loadTestFile(require.resolve('./sessions_in_space'));
});

View file

@ -18,7 +18,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const searchSessions = getService('searchSessions');
const queryBar = getService('queryBar');
describe('send to background', () => {
describe('save a search sessions', () => {
before(async function () {
const { body } = await es.info();
if (!body.version.number.includes('SNAPSHOT')) {
@ -83,7 +83,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
// load URL to restore a saved session
// TODO: replace with clicking on "Re-run link"
const url = await browser.getCurrentUrl();
const savedSessionURL = `${url}&searchSessionId=${savedSessionId}`;
await browser.get(savedSessionURL);

View file

@ -29,7 +29,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const dashboardExpect = getService('dashboardExpect');
const searchSessions = getService('searchSessions');
describe('send to background with relative time', () => {
describe('save a search sessions with relative time', () => {
before(async () => {
await PageObjects.common.navigateToUrl('home', '/tutorial_directory/sampleData', {
useActualUrl: true,