Use GrafanaAlertStateDecision.Error instead of Error string in RuleEditor test (#55385)

pull/55408/head
Sonia Aguilar 3 years ago committed by GitHub
parent 93e4205caa
commit e677afabdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      public/app/features/alerting/unified/RuleEditor.test.tsx

@ -294,7 +294,7 @@ describe('RuleEditor', () => {
grafana_alert: { grafana_alert: {
condition: 'B', condition: 'B',
data: getDefaultQueries(), data: getDefaultQueries(),
exec_err_state: 'Error', exec_err_state: GrafanaAlertStateDecision.Error,
no_data_state: 'NoData', no_data_state: 'NoData',
title: 'my great new rule', title: 'my great new rule',
}, },
@ -505,7 +505,7 @@ describe('RuleEditor', () => {
uid, uid,
condition: 'B', condition: 'B',
data: getDefaultQueries(), data: getDefaultQueries(),
exec_err_state: 'Error', exec_err_state: GrafanaAlertStateDecision.Error,
no_data_state: 'NoData', no_data_state: 'NoData',
title: 'my great new rule', title: 'my great new rule',
}, },

Loading…
Cancel
Save