Skip to content

Commit

Permalink
[DOCS] Automate more anomaly detection rule screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Oct 13, 2023
1 parent 50c59af commit 2a99c26
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await ml.alerting.setConnectorName('test-connector');
await ml.alerting.setWebhookUrl('https://www.elastic.co');
await ml.alerting.clickSaveActionButton();
await commonScreenshots.takeScreenshot(
'ml-anomaly-action-score-matched',
screenshotDirectories,
1920,
1400
);
await ml.alerting.openAddRuleVariable();
await ml.testExecution.logTestStep('take screenshot');
await commonScreenshots.takeScreenshot(
Expand All @@ -164,6 +170,16 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
1920,
1400
);
const actionFrequency = await testSubjects.find('summaryOrPerRuleSelect');
await actionFrequency.click();
const actionSummary = await testSubjects.find('actionNotifyWhen-option-summary');
await actionSummary.click();
await commonScreenshots.takeScreenshot(
'ml-anomaly-action-summary',
screenshotDirectories,
1920,
1400
);
});
});
});
Expand Down

0 comments on commit 2a99c26

Please sign in to comment.