added beta tag for linux config (#142171)

This commit is contained in:
Rickyanto Ang 2022-10-04 05:33:39 -07:00 committed by GitHub
parent fb6b10e232
commit b62c0f98cf
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,
},
];