mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.7`: - [[DOCS] Fix automated screenshot for ML rule notification (#151239)](https://github.com/elastic/kibana/pull/151239) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lisa Cawley","email":"lcawley@elastic.co"},"sourceCommit":{"committedDate":"2023-02-15T18:00:47Z","message":"[DOCS] Fix automated screenshot for ML rule notification (#151239)\n\nCo-authored-by: Robert Oskamp <traeluki@gmail.com>","sha":"168b9fd395bc9e2729e8b98046cfcffdcfb69aff","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","Feature:Alerting","release_note:skip","docs","backport:prev-minor","v8.7.0","v8.8.0"],"number":151239,"url":"https://github.com/elastic/kibana/pull/151239","mergeCommit":{"message":"[DOCS] Fix automated screenshot for ML rule notification (#151239)\n\nCo-authored-by: Robert Oskamp <traeluki@gmail.com>","sha":"168b9fd395bc9e2729e8b98046cfcffdcfb69aff"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/151239","number":151239,"mergeCommit":{"message":"[DOCS] Fix automated screenshot for ML rule notification (#151239)\n\nCo-authored-by: Robert Oskamp <traeluki@gmail.com>","sha":"168b9fd395bc9e2729e8b98046cfcffdcfb69aff"}}]}] BACKPORT--> Co-authored-by: Lisa Cawley <lcawley@elastic.co>
This commit is contained in:
parent
b8e65c6456
commit
e45cd84cb3
1 changed files with 7 additions and 5 deletions
|
@ -69,6 +69,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
const commonScreenshots = getService('commonScreenshots');
|
||||
const browser = getService('browser');
|
||||
const actions = getService('actions');
|
||||
const testSubjects = getService('testSubjects');
|
||||
|
||||
const screenshotDirectories = ['ml_docs', 'anomaly_detection'];
|
||||
|
||||
|
@ -105,13 +106,14 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
await ml.navigation.navigateToAlertsAndAction();
|
||||
await pageObjects.triggersActionsUI.clickCreateAlertButton();
|
||||
await ml.alerting.setRuleName('test-ecommerce');
|
||||
|
||||
await ml.alerting.openNotifySelection();
|
||||
const searchBox = await testSubjects.find('ruleSearchField');
|
||||
await searchBox.click();
|
||||
await searchBox.clearValue();
|
||||
await searchBox.type('ml');
|
||||
await searchBox.pressKeys(browser.keys.ENTER);
|
||||
await ml.testExecution.logTestStep('take screenshot');
|
||||
await commonScreenshots.takeScreenshot('ml-rule', screenshotDirectories, 1920, 1400);
|
||||
|
||||
// close popover
|
||||
await browser.pressKeys(browser.keys.ESCAPE);
|
||||
|
||||
await ml.alerting.selectAnomalyDetectionJobHealthAlertType();
|
||||
await ml.alerting.selectJobs([testJobId]);
|
||||
await ml.testExecution.logTestStep('take screenshot');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue