diff --git a/x-pack/plugins/uptime/public/components/overview/alerts/settings_message_expression_popover.tsx b/x-pack/plugins/uptime/public/components/overview/alerts/settings_message_expression_popover.tsx index 27a353c31a6a9..cf6d2547d9c0c 100644 --- a/x-pack/plugins/uptime/public/components/overview/alerts/settings_message_expression_popover.tsx +++ b/x-pack/plugins/uptime/public/components/overview/alerts/settings_message_expression_popover.tsx @@ -30,6 +30,7 @@ export const SettingsMessageExpressionPopover: React.FC { + 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'), + ]); + }); + }); +}; diff --git a/x-pack/test/functional_with_es_ssl/apps/uptime/index.ts b/x-pack/test/functional_with_es_ssl/apps/uptime/index.ts index ce91a2a26ce91..616b154da9c33 100644 --- a/x-pack/test/functional_with_es_ssl/apps/uptime/index.ts +++ b/x-pack/test/functional_with_es_ssl/apps/uptime/index.ts @@ -22,6 +22,7 @@ export default ({ getService, loadTestFile }: FtrProviderContext) => { after(async () => await esArchiver.unload(ARCHIVE)); loadTestFile(require.resolve('./alert_flyout')); + loadTestFile(require.resolve('./flyout_loads')); }); }); };