[ResponseOps][Alerting] Failed test x-pack/plugins/triggers_actions_ui/public/application/lib/transformActionVariables (#147579)

## Summary

Resolves https://github.com/elastic/kibana/issues/147573


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
This commit is contained in:
Alexi Doak 2022-12-14 16:40:53 -05:00 committed by GitHub
parent b74e7f9b82
commit 182c05e22e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,8 @@ const expectedTransformResult = [
name: 'alert.actionGroupName',
},
{
description: 'A flag on the alert that indicates whether the alert is flapping.',
description:
'A flag on the alert that indicates whether the alert status is changing repeatedly.',
name: 'alert.flapping',
},
{
@ -142,8 +143,7 @@ const expectedParamsTransformResult = (withBraces: boolean = false) => [
},
];
// FAILING: https://github.com/elastic/kibana/issues/147573
describe.skip('transformActionVariables', () => {
describe('transformActionVariables', () => {
test('should return correct variables when no state, no context, no params provided', async () => {
const alertType = getAlertType({ context: [], state: [], params: [] });
expect(transformActionVariables(alertType.actionVariables)).toEqual(expectedTransformResult);