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

This commit is contained in:
Sonia Aguilar 2022-09-19 15:04:24 +02:00 committed by GitHub
parent 93e4205caa
commit e677afabdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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