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();