From 54c6853e60ecd067f412a5fa83bc59df41fc6993 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Tue, 29 Nov 2022 11:30:40 -0500 Subject: [PATCH] fix(rules): rename Automatic to Automated (#693) * fix(rules): rename Automatic to Automated * fixup! fix(rules): rename Automatic to Automated --- src/app/Rules/CreateRule.tsx | 2 +- src/app/Rules/RulesUploadModal.tsx | 8 ++++---- src/test/Rules/Rules.test.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/Rules/CreateRule.tsx b/src/app/Rules/CreateRule.tsx index 85b97d12c..179767dcb 100644 --- a/src/app/Rules/CreateRule.tsx +++ b/src/app/Rules/CreateRule.tsx @@ -266,7 +266,7 @@ const Comp: React.FunctionComponent<{}> = () => { () => ({ spinnerAriaValueText: 'Creating', - spinnerAriaLabel: 'creating-automatic-rule', + spinnerAriaLabel: 'creating-automated-rule', isLoading: loading, } as LoadingPropsType), [loading] diff --git a/src/app/Rules/RulesUploadModal.tsx b/src/app/Rules/RulesUploadModal.tsx index b351bc482..ae029cc9d 100644 --- a/src/app/Rules/RulesUploadModal.tsx +++ b/src/app/Rules/RulesUploadModal.tsx @@ -60,7 +60,7 @@ export const parseRule = (file: File): Observable => { if (isRule(obj)) { return obj; } else { - throw new Error('Automatic rule content is invalid.'); + throw new Error('Automated rule content is invalid.'); } }) ); @@ -152,7 +152,7 @@ export const RuleUploadModal: React.FunctionComponent = (p () => ({ spinnerAriaValueText: 'Submitting', - spinnerAriaLabel: 'submitting-automatic-rule', + spinnerAriaLabel: 'submitting-automated-rule', isLoading: uploading, } as LoadingPropsType), [uploading] @@ -166,8 +166,8 @@ export const RuleUploadModal: React.FunctionComponent = (p variant={ModalVariant.large} showClose={!uploading} onClose={handleClose} - title="Upload Automatic Rules" - description="Select an Automatic Rules definition file to upload. File must be in valid JSON format." + title="Upload Automated Rules" + description="Select an Automated Rules definition file to upload. File must be in valid JSON format." help={ What's this?} diff --git a/src/test/Rules/Rules.test.tsx b/src/test/Rules/Rules.test.tsx index b0a932d30..9d7da29b1 100644 --- a/src/test/Rules/Rules.test.tsx +++ b/src/test/Rules/Rules.test.tsx @@ -166,7 +166,7 @@ describe('', () => { expect(modal).toBeInTheDocument(); expect(modal).toBeVisible(); - const modalTitle = await within(modal).findByText('Upload Automatic Rules'); + const modalTitle = await within(modal).findByText('Upload Automated Rules'); expect(modalTitle).toBeInTheDocument(); expect(modalTitle).toBeVisible(); @@ -270,7 +270,7 @@ describe('', () => { expect(modal).toBeInTheDocument(); expect(modal).toBeVisible(); - const modalTitle = await within(modal).findByText('Upload Automatic Rules'); + const modalTitle = await within(modal).findByText('Upload Automated Rules'); expect(modalTitle).toBeInTheDocument(); expect(modalTitle).toBeVisible();