Skip to content

Commit

Permalink
Replace app navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba committed Sep 14, 2023
1 parent c817790 commit c280c61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c280c61

Please sign in to comment.