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

[ML] Functional tests - fix and re-activate alerting flyout test #102368

Merged
merged 1 commit into from
Jun 16, 2021
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
7 changes: 3 additions & 4 deletions x-pack/test/functional_with_es_ssl/apps/ml/alert_flyout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

let testJobId = '';

// Failing: See https://github.com/elastic/kibana/issues/102012
describe.skip('anomaly detection alert', function () {
describe('anomaly detection alert', function () {
this.tags('ciGroup13');

before(async () => {
Expand Down Expand Up @@ -119,11 +118,11 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

await ml.testExecution.logTestStep('should preview the alert condition');
await ml.alerting.assertPreviewButtonState(false);
await ml.alerting.setTestInterval('2y');
await ml.alerting.setTestInterval('5y');
await ml.alerting.assertPreviewButtonState(true);

// don't check the exact number provided by the backend, just make sure it's > 0
await ml.alerting.checkPreview(/Found [1-9]\d* anomalies in the last 2y/);
await ml.alerting.checkPreview(/Found [1-9]\d* anomal(y|ies) in the last 5y/);

await ml.testExecution.logTestStep('should create an alert');
await pageObjects.triggersActionsUI.setAlertName('ml-test-alert');
Expand Down