Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Automate more anomaly detection rule screenshots #168900

Merged
merged 3 commits into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
1920,
1400
);
await ml.alerting.selectSlackConnectorType();
await ml.testExecution.logTestStep('should open connectors');
await ml.alerting.clickCreateConnectorButton();
await ml.alerting.setConnectorName('test-connector');
await ml.alerting.setWebhookUrl('https://www.elastic.co');
await ml.alerting.clickSaveActionButton();
await commonScreenshots.takeScreenshot(
'ml-health-check-action',
screenshotDirectories,
1920,
1400
);
await ml.alerting.clickCancelSaveRuleButton();

await pageObjects.triggersActionsUI.clickCreateAlertButton();
Expand Down Expand Up @@ -150,12 +162,13 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
1920,
1400
);
await ml.alerting.selectSlackConnectorType();
await ml.testExecution.logTestStep('should open connectors');
await ml.alerting.clickCreateConnectorButton();
await ml.alerting.setConnectorName('test-connector');
await ml.alerting.setWebhookUrl('https://www.elastic.co');
await ml.alerting.clickSaveActionButton();
await testSubjects.click('.slack-alerting-ActionTypeSelectOption');
await commonScreenshots.takeScreenshot(
'ml-anomaly-alert-action-score-matched',
screenshotDirectories,
1920,
1400
);
await ml.alerting.openAddRuleVariable();
await ml.testExecution.logTestStep('take screenshot');
await commonScreenshots.takeScreenshot(
Expand All @@ -164,6 +177,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-alert-action-summary',
screenshotDirectories,
1920,
1400
);
});
});
});
Expand Down
Loading