-
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.
Add basic functional tests for uptime alert flyouts.
- Loading branch information
1 parent
647d74f
commit 9eb7de4
Showing
5 changed files
with
48 additions
and
0 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
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
32 changes: 32 additions & 0 deletions
32
x-pack/test/functional_with_es_ssl/apps/uptime/flyout_loads.ts
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,32 @@ | ||
/* | ||
* 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 { FtrProviderContext } from '../../ftr_provider_context'; | ||
|
||
export default ({ getPageObjects, getService }: FtrProviderContext) => { | ||
describe('uptime alert flyout', () => { | ||
const pageObjects = getPageObjects(['common', 'uptime']); | ||
const uptimeService = getService('uptime'); | ||
const browserService = getService('browser'); | ||
|
||
afterEach(async () => browserService.refresh()); | ||
|
||
it('can open status flyout', async () => { | ||
await pageObjects.uptime.goToUptimeOverview(); | ||
await uptimeService.alerts.openFlyout('monitorStatus'); | ||
await uptimeService.alerts.assertMonitorStatusFlyoutSearchBarExists(); | ||
}); | ||
|
||
it('can open tls flyout', async () => { | ||
await pageObjects.uptime.goToUptimeOverview(); | ||
await uptimeService.alerts.openFlyout('tls'); | ||
await Promise.all([ | ||
uptimeService.alerts.assertTlsFieldExists('expiration'), | ||
uptimeService.alerts.assertTlsFieldExists('age'), | ||
]); | ||
}); | ||
}); | ||
}; |
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