Skip to content

Commit

Permalink
added beta tag for linux config (#142171)
Browse files Browse the repository at this point in the history
  • Loading branch information
animehart authored Oct 4, 2022
1 parent fb6b10e commit b62c0f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const SUPPLEMENTAL_OPTIONS: ReadonlyArray<SupplementalEventFormOption<OperatingS
isDisabled: (config: UIPolicyConfig) => {
return !config.linux.events.session_data;
},
beta: false,
beta: true,
},
];

Expand Down

0 comments on commit b62c0f9

Please sign in to comment.