added beta tag for linux config (#142171) (#142594)

(cherry picked from commit b62c0f98cf)

Co-authored-by: Rickyanto Ang <rickyangwyn@gmail.com>
This commit is contained in:
Kibana Machine 2022-10-04 07:40:38 -06:00 committed by GitHub
parent 695718b56d
commit 7dcf3da9b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -135,6 +135,13 @@ describe('Policy Form Layout', () => {
expect(saveButton).toHaveLength(1);
expect(saveButton.text()).toEqual('Save');
});
it('should display beta badge', async () => {
await asyncActions;
policyFormLayoutView.update();
const saveButton = policyFormLayoutView.find('EuiBetaBadge');
expect(saveButton).toHaveLength(1);
expect(saveButton.text()).toEqual('beta');
});
describe('when the save button is clicked', () => {
let saveButton: FindReactWrapperResponse;
let confirmModal: FindReactWrapperResponse;

View file

@ -88,7 +88,7 @@ const SUPPLEMENTAL_OPTIONS: ReadonlyArray<SupplementalEventFormOption<OperatingS
isDisabled: (config: UIPolicyConfig) => {
return !config.linux.events.session_data;
},
beta: false,
beta: true,
},
];