Skip to content

Commit

Permalink
fix functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
neptunian committed Oct 18, 2021
1 parent 71d7961 commit 1c116ba
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,22 @@ export const ElasticsearchNodeAdvancedPage: React.FC<ComponentProps> = ({ cluste
}, [ccs, clusterUuid, services.data?.query.timefilter.timefilter, services.http, node]);

return (
<ItemTemplate
title={title}
pageTitle={pageTitle}
getPageData={getPageData}
id={node}
pageType="nodes"
>
<AdvancedNode
nodeSummary={data.nodeSummary}
alerts={alerts}
metrics={data.metrics}
onBrush={onBrush}
zoomInfo={zoomInfo}
/>
</ItemTemplate>
<div data-test-subj="elasticsearchNodeDetailPage">
<ItemTemplate
title={title}
pageTitle={pageTitle}
getPageData={getPageData}
id={node}
pageType="nodes"
>
<AdvancedNode
nodeSummary={data.nodeSummary}
alerts={alerts}
metrics={data.metrics}
onBrush={onBrush}
zoomInfo={zoomInfo}
/>
</ItemTemplate>
</div>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -138,27 +138,29 @@ export const ElasticsearchNodePage: React.FC<ComponentProps> = ({ clusters }) =>
id={node}
pageType="nodes"
>
<SetupModeRenderer
productName={ELASTICSEARCH_SYSTEM_ID}
render={({ setupMode, flyoutComponent, bottomBarComponent }: SetupModeProps) => (
<SetupModeContext.Provider value={{ setupModeSupported: true }}>
{flyoutComponent}
<NodeReact
alerts={alerts}
labels={labels.node}
nodeId={node}
clusterUuid={clusterUuid}
onBrush={onBrush}
zoomInfo={zoomInfo}
toggleShowSystemIndices={toggleShowSystemIndices}
showSystemIndices={showSystemIndices}
nodesByIndices={nodesByIndicesData}
{...data}
/>
{bottomBarComponent}
</SetupModeContext.Provider>
)}
/>
<div data-test-subj="elasticsearchNodeDetailPage">
<SetupModeRenderer
productName={ELASTICSEARCH_SYSTEM_ID}
render={({ setupMode, flyoutComponent, bottomBarComponent }: SetupModeProps) => (
<SetupModeContext.Provider value={{ setupModeSupported: true }}>
{flyoutComponent}
<NodeReact
alerts={alerts}
labels={labels.node}
nodeId={node}
clusterUuid={clusterUuid}
onBrush={onBrush}
zoomInfo={zoomInfo}
toggleShowSystemIndices={toggleShowSystemIndices}
showSystemIndices={showSystemIndices}
nodesByIndices={nodesByIndicesData}
{...data}
/>
{bottomBarComponent}
</SetupModeContext.Provider>
)}
/>
</div>
</ItemTemplate>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export default function ({ getService, getPageObjects }) {
const nodesList = getService('monitoringElasticsearchNodes');
const nodeDetail = getService('monitoringElasticsearchNodeDetail');

// FLAKY https://github.com/elastic/kibana/issues/115130
describe.skip('Elasticsearch node detail', () => {
describe('Elasticsearch node detail', () => {
describe('Active Nodes', () => {
const { setup, tearDown } = getLifecycleMethods(getService, getPageObjects);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ export function MonitoringElasticsearchNodesProvider({ getService, getPageObject
return pageId !== null;
}

clickRowByResolver(nodeResolver) {
return testSubjects.click(SUBJ_NODE_LINK_PREFIX + nodeResolver);
async clickRowByResolver(nodeResolver) {
await testSubjects.click(SUBJ_NODE_LINK_PREFIX + nodeResolver);
await testSubjects.find('elasticsearchNodeDetailPage');
}

async waitForTableToFinishLoading() {
Expand Down

0 comments on commit 1c116ba

Please sign in to comment.