Skip to content

Commit

Permalink
Fix navigation when no data views are available
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Apr 13, 2022
1 parent 6e563f9 commit f4675a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const Overview: FC<Props> = ({ newsFetchResult, solutions, features }) =>
defaultMessage:
'Use Elastic Agent or Beats to collect data and build out Analytics solutions.',
}),
'data-test-subj': "kbnOverviewAddIntegrations"
},
},
docsLink: docLinks.links.kibana.guide,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await spacesService.delete('custom_space_no_index_patterns');
});

it('Navigates to Kibana home rather than index pattern management when no index patterns exist', async () => {
it('Navigates to Kibana Analytics overview when no data views exist', async () => {
await PageObjects.common.navigateToUrl('discover', '', {
basePath: '/s/custom_space_no_index_patterns',
ensureCurrentUrl: false,
shouldUseHashForSubUrl: false,
});
await testSubjects.existOrFail('homeApp', { timeout: config.get('timeouts.waitFor') });
await testSubjects.existOrFail('kbnOverviewAddIntegrations', { timeout: config.get('timeouts.waitFor') });
});
});
});
Expand Down

0 comments on commit f4675a3

Please sign in to comment.