File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export const RuleUploadModal: React.FunctionComponent<RuleUploadModalProps> = (p
131131 abort . abort ( ) ;
132132 reset ( ) ;
133133 props . onClose ( ) ;
134- } , [ abort , reset ] ) ;
134+ } , [ abort , reset , props . onClose ] ) ;
135135
136136 return (
137137 < >
@@ -141,8 +141,8 @@ export const RuleUploadModal: React.FunctionComponent<RuleUploadModalProps> = (p
141141 variant = { ModalVariant . large }
142142 showClose = { true }
143143 onClose = { handleClose }
144- title = "Upload Automatic Rules"
145- description = "Select an Automatic Rules definition file to upload. File must be in valid JSON format."
144+ title = "Upload Automated Rules"
145+ description = "Select an Automated Rules definition file to upload. File must be in valid JSON format."
146146 help = {
147147 < Popover
148148 headerContent = { < div > What's this?</ div > }
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ describe('<Rules />', () => {
175175 expect ( modal ) . toBeInTheDocument ( ) ;
176176 expect ( modal ) . toBeVisible ( ) ;
177177
178- const modalTitle = await within ( modal ) . findByText ( 'Upload Automatic Rules' ) ;
178+ const modalTitle = await within ( modal ) . findByText ( 'Upload Automated Rules' ) ;
179179 expect ( modalTitle ) . toBeInTheDocument ( ) ;
180180 expect ( modalTitle ) . toBeVisible ( ) ;
181181
@@ -321,7 +321,7 @@ describe('<Rules />', () => {
321321 expect ( modal ) . toBeInTheDocument ( ) ;
322322 expect ( modal ) . toBeVisible ( ) ;
323323
324- const modalTitle = await within ( modal ) . findByText ( 'Upload Automatic Rules' ) ;
324+ const modalTitle = await within ( modal ) . findByText ( 'Upload Automated Rules' ) ;
325325 expect ( modalTitle ) . toBeInTheDocument ( ) ;
326326 expect ( modalTitle ) . toBeVisible ( ) ;
327327
You can’t perform that action at this time.
0 commit comments