Skip to content

Commit

Permalink
[ML] Update functional tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Aug 17, 2021
1 parent 5804216 commit d908b7e
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

// The default tab 'Trace samples' should show the log log chart without the correlations analysis part.
// First assert that the log log chart and its header are present
const apmCorrelationsLatencyCorrelationsChartTitle = await testSubjects.getVisibleText(
'apmCorrelationsLatencyCorrelationsChartTitle'
const apmTransactionDistributionChartTitle = await testSubjects.getVisibleText(
'apmTransactionDistributionChartTitle'
);
expect(apmCorrelationsLatencyCorrelationsChartTitle).to.be(testData.logLogChartTitle);
expect(apmTransactionDistributionChartTitle).to.be(testData.logLogChartTitle);
await testSubjects.existOrFail('apmCorrelationsChart');
// Then assert that the correlation analysis part is not present
await testSubjects.missingOrFail('apmCorrelationsLatencyCorrelationsTablePanelTitle');
Expand All @@ -137,7 +137,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await testSubjects.click('apmLatencyCorrelationsTabButton');

await retry.try(async () => {
await testSubjects.existOrFail('apmCorrelationsTabContent');
await testSubjects.existOrFail('apmLatencyCorrelationsTabContent');
});
});

Expand All @@ -159,7 +159,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

// Assert that results for the given service didn't find any correlations
const apmCorrelationsTable = await testSubjects.getVisibleText('apmCorrelationsTable');
expect(apmCorrelationsTable).to.be('No significant correlations found');
expect(apmCorrelationsTable).to.be(
'No significant correlations\nCorrelations will only be identified if they have significant impact.\nTry selecting another time range or remove any added filter.'
);
});
});
});
Expand Down

0 comments on commit d908b7e

Please sign in to comment.