mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.5`: - [[ML] Modifies script for population analysis screenshot (#146393)](https://github.com/elastic/kibana/pull/146393) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"István Zoltán Szabó","email":"szabosteve@gmail.com"},"sourceCommit":{"committedDate":"2022-11-29T06:44:25Z","message":"[ML] Modifies script for population analysis screenshot (#146393)\n\nThis PR adjusts the screenshot automation script to take the\r\n`ml-population-results` screenshots with swim lanes visible.","sha":"115c250a9b79f552395e75b5534d86acc8789597","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v8.7.0","v8.5.3","v8.6.1"],"number":146393,"url":"https://github.com/elastic/kibana/pull/146393","mergeCommit":{"message":"[ML] Modifies script for population analysis screenshot (#146393)\n\nThis PR adjusts the screenshot automation script to take the\r\n`ml-population-results` screenshots with swim lanes visible.","sha":"115c250a9b79f552395e75b5534d86acc8789597"}},"sourceBranch":"main","suggestedTargetBranches":["8.5","8.6"],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146393","number":146393,"mergeCommit":{"message":"[ML] Modifies script for population analysis screenshot (#146393)\n\nThis PR adjusts the screenshot automation script to take the\r\n`ml-population-results` screenshots with swim lanes visible.","sha":"115c250a9b79f552395e75b5534d86acc8789597"}},{"branch":"8.5","label":"v8.5.3","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.6","label":"v8.6.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
This commit is contained in:
parent
8af4e2e87a
commit
c7f2e04140
1 changed files with 2 additions and 13 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue