Skip to content

Commit

Permalink
[ML] Fix Anomaly Explorer tests for updated anomaly scores (#137434)
Browse files Browse the repository at this point in the history
  • Loading branch information
peteharverson authored Jul 28, 2022
1 parent a8e5bf4 commit cb5b4cb
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ export default function ({ getService }: FtrProviderContext) {
const elasticChart = getService('elasticChart');
const browser = getService('browser');

// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/137300
describe.skip('anomaly explorer', function () {
describe('anomaly explorer', function () {
this.tags(['ml']);
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/farequote');
Expand Down Expand Up @@ -167,11 +166,11 @@ export default function ({ getService }: FtrProviderContext) {
]);
await ml.swimLane.assertAxisLabels(viewBySwimLaneTestSubj, 'y', [
'AAL',
'VRD',
'EGF',
'VRD',
'SWR',
'AMX',
'JZA',
'AMX',
'TRS',
'ACA',
'BAW',
Expand Down Expand Up @@ -341,13 +340,13 @@ export default function ({ getService }: FtrProviderContext) {
await ml.swimLane.waitForSwimLanesToLoad();

await ml.swimLane.assertSelection(viewBySwimLaneTestSubj, {
x: [1454817600000, 1454846400000],
y: ['AAL', 'VRD'],
x: [1454817600000, 1454860800000],
y: ['AAL', 'EGF'],
});

await ml.anomaliesTable.assertTableRowsCount(2);
await ml.anomaliesTable.assertTableRowsCount(3);
await ml.anomalyExplorer.assertInfluencerFieldListLength('airline', 2);
await ml.anomalyExplorer.assertAnomalyExplorerChartsCount(2);
await ml.anomalyExplorer.assertAnomalyExplorerChartsCount(3);

await ml.testExecution.logTestStep('clears the selection');
await ml.anomalyExplorer.clearSwimLaneSelection();
Expand Down

0 comments on commit cb5b4cb

Please sign in to comment.