Skip to content
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
9 changes: 5 additions & 4 deletions x-pack/test/functional/page_objects/infra_hosts_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { AlertStatus, ALERT_STATUS_ACTIVE, ALERT_STATUS_RECOVERED } from '@kbn/rule-data-utils';
import { AlertStatus } from '@kbn/rule-data-utils';
import { WebElementWrapper } from '../../../../test/functional/services/lib/web_element_wrapper';
import { FtrProviderContext } from '../ftr_provider_context';

Expand Down Expand Up @@ -201,9 +201,10 @@ export function InfraHostsViewProvider({ getService }: FtrProviderContext) {
},

setAlertStatusFilter(alertStatus?: AlertStatus) {
const buttons = {
[ALERT_STATUS_ACTIVE]: 'hostsView-alert-status-filter-active-button',
[ALERT_STATUS_RECOVERED]: 'hostsView-alert-status-filter-recovered-button',
const buttons: Record<AlertStatus | 'all', string> = {
active: 'hostsView-alert-status-filter-active-button',
recovered: 'hostsView-alert-status-filter-recovered-button',
untracked: 'hostsView-alert-status-filter-untracked-button',
Comment thread
watson marked this conversation as resolved.
all: 'hostsView-alert-status-filter-show-all-button',
};

Expand Down