diff --git a/x-pack/plugins/search_indices/public/plugin.ts b/x-pack/plugins/search_indices/public/plugin.ts index 9a3f0fcf9bb80..5c79d032a057e 100644 --- a/x-pack/plugins/search_indices/public/plugin.ts +++ b/x-pack/plugins/search_indices/public/plugin.ts @@ -91,7 +91,7 @@ export class SearchIndicesPlugin indexManagement?.extensionsService.setIndexDetailsPageRoute({ renderRoute: (indexName, detailsTabId) => { const route = `/app/elasticsearch/indices/index_details/${indexName}`; - const tabIds:string[] = Object.values(SearchIndexDetailsTabs) + const tabIds: string[] = Object.values(SearchIndexDetailsTabs); if (detailsTabId && tabIds.includes(detailsTabId)) { return `${route}/${detailsTabId}`; } diff --git a/x-pack/test_serverless/functional/page_objects/svl_search_index_detail_page.ts b/x-pack/test_serverless/functional/page_objects/svl_search_index_detail_page.ts index a131b47f00995..fcc16e665c30d 100644 --- a/x-pack/test_serverless/functional/page_objects/svl_search_index_detail_page.ts +++ b/x-pack/test_serverless/functional/page_objects/svl_search_index_detail_page.ts @@ -206,7 +206,13 @@ export function SvlSearchIndexDetailPageProvider({ getService }: FtrProviderCont await testSubjects.existOrFail('showMappingsIndexMenuButton'); await testSubjects.existOrFail('deleteIndexMenuButton'); }, - async changeManageIndexTab(manageIndexTab: 'showOverviewIndexMenuButton' | 'showSettingsIndexMenuButton' | 'showMappingsIndexMenuButton'| 'deleteIndexMenuButton') { + async changeManageIndexTab( + manageIndexTab: + | 'showOverviewIndexMenuButton' + | 'showSettingsIndexMenuButton' + | 'showMappingsIndexMenuButton' + | 'deleteIndexMenuButton' + ) { await testSubjects.existOrFail(manageIndexTab); const manageIndexComponent = await testSubjects.find(manageIndexTab); await manageIndexComponent.click(); diff --git a/x-pack/test_serverless/functional/test_suites/search/search_index_detail.ts b/x-pack/test_serverless/functional/test_suites/search/search_index_detail.ts index ab5912b6953a7..132e7f8709da7 100644 --- a/x-pack/test_serverless/functional/test_suites/search/search_index_detail.ts +++ b/x-pack/test_serverless/functional/test_suites/search/search_index_detail.ts @@ -191,6 +191,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await pageObjects.indexManagement.changeTabs('indicesTab'); await pageObjects.header.waitUntilLoadingHasFinished(); }); + after(async () => { + await esDeleteAllIndices(indexName); + }); describe('manage index action', () => { beforeEach(async () => { await pageObjects.svlSearchIndexDetailPage.manageIndex();