diff --git a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/population_analysis.ts b/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/population_analysis.ts index 23fa9f047a5ce..caad3cc76ae5c 100644 --- a/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/population_analysis.ts +++ b/x-pack/test/screenshot_creation/apps/ml_docs/anomaly_detection/population_analysis.ts @@ -14,7 +14,6 @@ export default function ({ getService }: FtrProviderContext) { const elasticChart = getService('elasticChart'); const ml = getService('ml'); const commonScreenshots = getService('commonScreenshots'); - const testSubjects = getService('testSubjects'); const screenshotDirectories = ['ml_docs', 'anomaly_detection']; @@ -85,22 +84,12 @@ export default function ({ getService }: FtrProviderContext) { await ml.jobTable.filterWithSearchString(populationJobConfig.job_id, 1); await ml.jobTable.clickOpenJobInAnomalyExplorerButton(populationJobConfig.job_id); await ml.commonUI.waitForMlLoadingIndicatorToDisappear(); - - await ml.testExecution.logTestStep('open tooltip and take screenshot'); - const viewBySwimLanes = await testSubjects.find(viewBySwimLaneTestSubj); - const cells = await ml.swimLane.getCells(viewBySwimLaneTestSubj); - const sampleCell = cells[0]; - - await viewBySwimLanes.moveMouseTo({ - xOffset: Math.floor(cellSize / 2.0), - yOffset: Math.floor(cellSize / 2.0), - }); - await commonScreenshots.takeScreenshot('ml-population-results', screenshotDirectories); - await ml.testExecution.logTestStep( 'select swim lane tile, expand anomaly row and take screenshot' ); + const cells = await ml.swimLane.getCells(viewBySwimLaneTestSubj); + const sampleCell = cells[0]; await ml.swimLane.selectSingleCell(viewBySwimLaneTestSubj, { x: sampleCell.x + cellSize, y: sampleCell.y + cellSize,