Skip to content

Commit

Permalink
properly set test-subj attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
klacabane committed Oct 11, 2021
1 parent 930fe96 commit 389b510
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,8 @@ export const KibanaInstancePage: React.FC<ComponentProps> = ({ clusters }) => {
}, [ccs, clusterUuid, instance, services.data?.query.timefilter.timefilter, services.http]);

return (
<PageTemplate
title={title}
pageTitle={pageTitle}
getPageData={getPageData}
data-test-subj="kibanaInstancePage"
>
<div data-test-subj="monitoringKibanaInstanceApp">
<PageTemplate title={title} pageTitle={pageTitle} getPageData={getPageData}>
<div data-test-subj="kibanaInstancePage">
<KibanaInstance data={data} alerts={{}} />
</div>
</PageTemplate>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,7 @@ export const KibanaInstancesPage: React.FC<ComponentProps> = ({ clusters }) => {
]);

return (
<KibanaTemplate
title={title}
pageTitle={pageTitle}
getPageData={getPageData}
data-test-subj="kibanaInstancesPage"
>
<KibanaTemplate title={title} pageTitle={pageTitle} getPageData={getPageData}>
<div data-test-subj="monitoringKibanaInstancesApp">
<SetupModeRenderer
productName={KIBANA_SYSTEM_ID}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ export const KibanaTemplate: React.FC<PageTemplateProps> = ({ ...props }) => {
defaultMessage: 'Overview',
}),
route: '/kibana',
testSubj: 'kibanaOverviewPage',
},
{
id: 'instances',
label: i18n.translate('xpack.monitoring.kibanaNavigation.instancesLinkText', {
defaultMessage: 'Instances',
}),
route: '/kibana/instances',
testSubj: 'kibanaInstancesPage',
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export const KibanaOverviewPage: React.FC<ComponentProps> = ({ clusters }) => {

return (
<KibanaTemplate
data-test-subj="kibanaOverviewPage"
getPageData={getPageData}
title={title}
pageTitle={pageTitle}
Expand Down

0 comments on commit 389b510

Please sign in to comment.