Skip to content

Commit

Permalink
fix(rules): rename Automatic to Automated (#693)
Browse files Browse the repository at this point in the history
* fix(rules): rename Automatic to Automated

* fixup! fix(rules): rename Automatic to Automated
  • Loading branch information
andrewazores authored Nov 29, 2022
1 parent e8a1ebc commit 54c6853
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/Rules/CreateRule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ const Comp: React.FunctionComponent<{}> = () => {
() =>
({
spinnerAriaValueText: 'Creating',
spinnerAriaLabel: 'creating-automatic-rule',
spinnerAriaLabel: 'creating-automated-rule',
isLoading: loading,
} as LoadingPropsType),
[loading]
Expand Down
8 changes: 4 additions & 4 deletions src/app/Rules/RulesUploadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const parseRule = (file: File): Observable<Rule> => {
if (isRule(obj)) {
return obj;
} else {
throw new Error('Automatic rule content is invalid.');
throw new Error('Automated rule content is invalid.');
}
})
);
Expand Down Expand Up @@ -152,7 +152,7 @@ export const RuleUploadModal: React.FunctionComponent<RuleUploadModalProps> = (p
() =>
({
spinnerAriaValueText: 'Submitting',
spinnerAriaLabel: 'submitting-automatic-rule',
spinnerAriaLabel: 'submitting-automated-rule',
isLoading: uploading,
} as LoadingPropsType),
[uploading]
Expand All @@ -166,8 +166,8 @@ export const RuleUploadModal: React.FunctionComponent<RuleUploadModalProps> = (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={
<Popover
headerContent={<div>What's this?</div>}
Expand Down
4 changes: 2 additions & 2 deletions src/test/Rules/Rules.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe('<Rules />', () => {
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();

Expand Down Expand Up @@ -270,7 +270,7 @@ describe('<Rules />', () => {
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();

Expand Down

0 comments on commit 54c6853

Please sign in to comment.