mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Stack monitoring] Fix clusters functional tests when react is enabled (#114982)
* Fix test subjects for overview page * fix pathname matching
This commit is contained in:
parent
586682a0c4
commit
cdce98c8a3
4 changed files with 4 additions and 5 deletions
|
@ -50,7 +50,7 @@ export const ClusterOverview: React.FC<{}> = () => {
|
|||
{
|
||||
id: 'clusterName',
|
||||
label: clusters[0].cluster_name,
|
||||
testSubj: 'clusterName',
|
||||
testSubj: 'overviewTabsclusterName',
|
||||
route: '/overview',
|
||||
},
|
||||
];
|
||||
|
|
|
@ -57,7 +57,7 @@ export const RouteInit: React.FC<RouteInitProps> = ({
|
|||
|
||||
// check if we need to redirect because of attempt at unsupported multi-cluster monitoring
|
||||
const clusterSupported = cluster.isSupported || clusters.length === 1;
|
||||
if (location.pathname !== 'home' && !clusterSupported) {
|
||||
if (location.pathname !== '/home' && !clusterSupported) {
|
||||
return <Redirect to="/home" />;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -299,7 +299,7 @@
|
|||
</div>
|
||||
|
||||
<div ng-if="monitoringMain.inOverview" class="euiTabs" role="navigation">
|
||||
<a class="euiTab" data-test-subj="clusterName">{{ pageData.cluster_name }}</a>
|
||||
<a class="euiTab" data-test-subj="overviewTabsclusterName">{{ pageData.cluster_name }}</a>
|
||||
</div>
|
||||
|
||||
<div ng-if="monitoringMain.inAlerts" class="euiTabs" role="navigation">
|
||||
|
|
|
@ -12,8 +12,7 @@ export function MonitoringClusterOverviewProvider({ getService }) {
|
|||
const retry = getService('retry');
|
||||
|
||||
const SUBJ_CLUSTER_ALERTS = `clusterAlertsContainer`;
|
||||
const SUBJ_CLUSTER_OVERVIEW = 'clusterOverviewContainer';
|
||||
const SUBJ_CLUSTER_NAME = `${SUBJ_CLUSTER_OVERVIEW} > clusterName`;
|
||||
const SUBJ_CLUSTER_NAME = `overviewTabsclusterName`;
|
||||
|
||||
const SUBJ_ES_PANEL = `clusterItemContainerElasticsearch`;
|
||||
const SUBJ_ES_STATUS = `${SUBJ_ES_PANEL} > statusIcon`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue