-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Uptime] Update Ml functional test (#62562)
* update test * added test * updated type * updated test * updated test * update test Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
61271c0
commit c7f61f9
Showing
22 changed files
with
235 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...public/components/monitor_details/ml/__tests__/__snapshots__/confirm_delete.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...e/public/components/monitor_details/ml/__tests__/__snapshots__/license_info.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...time/public/components/monitor_details/ml/__tests__/__snapshots__/ml_flyout.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...blic/components/monitor_details/ml/__tests__/__snapshots__/ml_integerations.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.../public/components/monitor_details/ml/__tests__/__snapshots__/ml_manage_job.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import expect from '@kbn/expect'; | ||
import { FtrProviderContext } from '../../ftr_provider_context'; | ||
|
||
export default ({ getService }: FtrProviderContext) => { | ||
const uptime = getService('uptime'); | ||
const log = getService('log'); | ||
|
||
describe('uptime ml anomaly', function() { | ||
this.tags(['skipFirefox']); | ||
const dateStart = 'Sep 10, 2019 @ 12:40:08.078'; | ||
const dateEnd = 'Sep 11, 2019 @ 19:40:08.078'; | ||
const monitorId = '0000-intermittent'; | ||
|
||
before(async () => { | ||
if (!(await uptime.navigation.checkIfOnMonitorPage(monitorId))) { | ||
await uptime.navigation.loadDataAndGoToMonitorPage(dateStart, dateEnd, monitorId); | ||
} | ||
if (await uptime.ml.alreadyHasJob()) { | ||
log.info('Jon already exists so lets delete it to start fresh.'); | ||
await uptime.ml.deleteMLJob(); | ||
} | ||
}); | ||
|
||
it('can open ml flyout', async () => { | ||
await uptime.ml.openMLFlyout(); | ||
}); | ||
|
||
it('has permission to create job', async () => { | ||
expect(uptime.ml.canCreateJob()).to.eql(true); | ||
expect(uptime.ml.hasNoLicenseInfo()).to.eql(false); | ||
}); | ||
|
||
it('can create job successfully', async () => { | ||
await uptime.ml.createMLJob(); | ||
// await uptime.navigation.refreshApp(); | ||
}); | ||
|
||
it('can open ML Manage Menu', async () => { | ||
await uptime.ml.openMLManageMenu(); | ||
}); | ||
|
||
it('can delete job successfully', async () => { | ||
await uptime.ml.deleteMLJob(); | ||
}); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.