Skip to content

Commit

Permalink
disable inputs instead of rendering text
Browse files Browse the repository at this point in the history
  • Loading branch information
szwarckonrad committed Oct 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7971064 commit d33ebe6
Showing 1 changed file with 0 additions and 75 deletions.
Original file line number Diff line number Diff line change
@@ -132,80 +132,5 @@ describe('Policy Ransomware Protections Card', () => {
);
});
});
// it('should display correctly when overall card is enabled', () => {
// const { getByTestId } = render();
//
// expectIsViewOnly(getByTestId(testSubj.card));
//
// expect(getByTestId(testSubj.card)).toHaveTextContent(
// exactMatchText(
// 'Type' +
// 'Ransomware' +
// 'Operating system' +
// 'Windows ' +
// 'Ransomware protections enabled' +
// 'Protection level' +
// 'Detect' +
// 'Prevent' +
// 'User notification' +
// 'Agent version 7.12+' +
// 'Notify user' +
// 'Customize notification message' +
// 'Info' +
// 'View related detection rules. Prebuilt rules are tagged “Elastic” on the Detection Rules page.'
// )
// );
// });
//
// it('should display correctly when overall card is disabled', () => {
// set(formProps.policy, 'windows.malware.mode', ProtectionModes.off);
// const { getByTestId } = render();
//
// expectIsViewOnly(getByTestId(testSubj.card));
//
// expect(getByTestId(testSubj.card)).toHaveTextContent(
// exactMatchText(
// 'Type' +
// 'Ransomware' +
// 'Operating system' +
// 'Windows ' +
// 'Ransomware protections enabled' +
// 'Protection level' +
// 'Prevent' +
// 'User notification' +
// 'Agent version 7.12+' +
// 'Notify user' +
// 'Notification message' +
// '—' +
// 'View related detection rules. Prebuilt rules are tagged “Elastic” on the Detection Rules page.'
// )
// );
// });
//
// it('should display user notification disabled', () => {
// set(formProps.policy, 'windows.popup.malware.enabled', false);
//
// const { getByTestId } = render();
//
// expectIsViewOnly(getByTestId(testSubj.card));
//
// expect(getByTestId(testSubj.card)).toHaveTextContent(
// exactMatchText(
// 'Type' +
// 'Ransomware' +
// 'Operating system' +
// 'Windows ' +
// 'Ransomware protections enabled' +
// 'Protection level' +
// 'Prevent' +
// 'User notification' +
// 'Agent version 7.12+' +
// 'Notify user' +
// 'Notification message' +
// '—' +
// 'View related detection rules. Prebuilt rules are tagged “Elastic” on the Detection Rules page.'
// )
// );
// });
});
});

0 comments on commit d33ebe6

Please sign in to comment.