From befb4b42fd0e479620ba5bcbe44d730252ce3e92 Mon Sep 17 00:00:00 2001 From: Yan Savitski Date: Sun, 5 Jan 2025 21:55:06 +0100 Subject: [PATCH] Fix FTR common tests --- .../server/collectors/application_usage/schema.ts | 2 ++ x-pack/test/functional/page_objects/index_management_page.ts | 4 ++-- .../ui_capabilities/security_and_spaces/tests/catalogue.ts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts b/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts index dd327dd4706d5..6197a9408b87a 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts @@ -138,6 +138,8 @@ export const applicationUsageSchema = { enterpriseSearchContent: commonSchema, searchInferenceEndpoints: commonSchema, searchPlayground: commonSchema, + elasticsearchIndices: commonSchema, + elasticsearchStart: commonSchema, enterpriseSearchAnalytics: commonSchema, enterpriseSearchApplications: commonSchema, enterpriseSearchAISearch: commonSchema, diff --git a/x-pack/test/functional/page_objects/index_management_page.ts b/x-pack/test/functional/page_objects/index_management_page.ts index 207bf2281c080..d66f35e5713d0 100644 --- a/x-pack/test/functional/page_objects/index_management_page.ts +++ b/x-pack/test/functional/page_objects/index_management_page.ts @@ -79,7 +79,7 @@ export function IndexManagementPageProvider({ getService }: FtrProviderContext) const indexList = await testSubjects.findAll('indexTableIndexNameLink'); await indexList[indexOfRow].click(); await retry.waitFor('details page title to show up', async () => { - return (await testSubjects.isDisplayed('indexDetailsHeader')) === true; + return (await testSubjects.isDisplayed('searchIndexDetailsHeader')) === true; }); }, @@ -158,7 +158,7 @@ export function IndexManagementPageProvider({ getService }: FtrProviderContext) const indexList = await testSubjects.findAll('indexTableIndexNameLink'); await indexList[indexOfRow].click(); await retry.waitFor('index details page title to show up', async () => { - return (await testSubjects.isDisplayed('indexDetailsHeader')) === true; + return (await testSubjects.isDisplayed('searchIndexDetailsHeader')) === true; }); }, async expectIndexDetailsPageIsLoaded() { diff --git a/x-pack/test/ui_capabilities/security_and_spaces/tests/catalogue.ts b/x-pack/test/ui_capabilities/security_and_spaces/tests/catalogue.ts index 71324846b2160..7b7d11eacbef6 100644 --- a/x-pack/test/ui_capabilities/security_and_spaces/tests/catalogue.ts +++ b/x-pack/test/ui_capabilities/security_and_spaces/tests/catalogue.ts @@ -88,6 +88,8 @@ export default function catalogueTests({ getService }: FtrProviderContext) { 'enterpriseSearchSemanticSearch', 'enterpriseSearchElasticsearch', 'searchPlayground', + 'elasticsearchIndices', + 'elasticsearchStart', 'searchInferenceEndpoints', 'appSearch', 'observabilityAIAssistant',