diff --git a/x-pack/test_serverless/functional/test_suites/common/index_management/index_templates.ts b/x-pack/test_serverless/functional/test_suites/common/index_management/index_templates.ts index 6b971610283ee..7e9355076887b 100644 --- a/x-pack/test_serverless/functional/test_suites/common/index_management/index_templates.ts +++ b/x-pack/test_serverless/functional/test_suites/common/index_management/index_templates.ts @@ -8,19 +8,17 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../../ftr_provider_context'; -export default ({ getPageObject, getPageObjects, getService }: FtrProviderContext) => { - const pageObjects = getPageObjects(['common', 'indexManagement', 'header']); +export default ({ getPageObjects, getService }: FtrProviderContext) => { + const pageObjects = getPageObjects(['svlCommonPage', 'common', 'indexManagement', 'header']); const browser = getService('browser'); const security = getService('security'); - const svlCommonPage = getPageObject('svlCommonPage'); - const svlCommonNavigation = getPageObject('svlCommonNavigation'); describe('Index Templates', function () { before(async () => { await security.testUser.setRoles(['index_management_user']); // Navigate to the index management page - await svlCommonPage.login(); - await svlCommonNavigation.sidenav.clickLink({ deepLinkId: 'management:index_management' }); + await pageObjects.svlCommonPage.login(); + await pageObjects.common.navigateToApp('indexManagement'); // Navigate to the index templates tab await pageObjects.indexManagement.changeTabs('templatesTab'); await pageObjects.header.waitUntilLoadingHasFinished(); diff --git a/x-pack/test_serverless/functional/test_suites/common/index_management/indices.ts b/x-pack/test_serverless/functional/test_suites/common/index_management/indices.ts index ed42100078226..5d9d53863270b 100644 --- a/x-pack/test_serverless/functional/test_suites/common/index_management/indices.ts +++ b/x-pack/test_serverless/functional/test_suites/common/index_management/indices.ts @@ -8,19 +8,17 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../../ftr_provider_context'; -export default ({ getPageObject, getPageObjects, getService }: FtrProviderContext) => { - const pageObjects = getPageObjects(['common', 'indexManagement', 'header']); +export default ({ getPageObjects, getService }: FtrProviderContext) => { + const pageObjects = getPageObjects(['svlCommonPage', 'common', 'indexManagement', 'header']); const browser = getService('browser'); const security = getService('security'); - const svlCommonPage = getPageObject('svlCommonPage'); - const svlCommonNavigation = getPageObject('svlCommonNavigation'); describe('Indices', function () { before(async () => { await security.testUser.setRoles(['index_management_user']); // Navigate to the index management page - await svlCommonPage.login(); - await svlCommonNavigation.sidenav.clickLink({ deepLinkId: 'management:index_management' }); + await pageObjects.svlCommonPage.login(); + await pageObjects.common.navigateToApp('indexManagement'); // Navigate to the indices tab await pageObjects.indexManagement.changeTabs('indicesTab'); await pageObjects.header.waitUntilLoadingHasFinished();