mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] Docs screenshots - fix weblogs anomaly explorer screenshot (#125501)
This PR fixes the weblogs anomaly explorer docs screenshot by expanding the cell selection to the last element of the array and using another scrollIntoView.
This commit is contained in:
parent
cc74733a8b
commit
91314e0942
1 changed files with 2 additions and 1 deletions
|
@ -266,7 +266,7 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
|
|||
await ml.testExecution.logTestStep('select swim lane tile');
|
||||
const cells = await ml.swimLane.getCells(overallSwimLaneTestSubj);
|
||||
const sampleCell1 = cells[11];
|
||||
const sampleCell2 = cells[12];
|
||||
const sampleCell2 = cells[cells.length - 1];
|
||||
await ml.swimLane.selectCells(overallSwimLaneTestSubj, {
|
||||
x1: sampleCell1.x + cellSize,
|
||||
y1: sampleCell1.y + cellSize,
|
||||
|
@ -281,6 +281,7 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
|
|||
// clickFitToData only works with displayed legend
|
||||
await maps.openLegend();
|
||||
await maps.clickFitToData();
|
||||
await ml.anomalyExplorer.scrollChartsContainerIntoView();
|
||||
await maps.closeLegend();
|
||||
|
||||
await mlScreenshots.takeScreenshot(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue