File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
redisinsight/ui/src/pages/rdi/pipeline-management/pages/config Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ describe('Config', () => {
239239 expect ( screen . getByTestId ( 'rdi-config-loading' ) ) . toBeInTheDocument ( )
240240 } )
241241
242- it ( 'should render loader on btn' , ( ) => {
242+ it ( 'should not render loader on btn for pipeline loading ' , ( ) => {
243243 const rdiPipelineSelectorMock = jest . fn ( ) . mockReturnValue ( {
244244 loading : true ,
245245 } )
@@ -251,10 +251,11 @@ describe('Config', () => {
251251
252252 // check is btn has loader
253253 const child = getByTestId ( 'rdi-test-connection-btn' )
254- expect ( child . querySelector ( 'svg' ) ) . toBeTruthy ( )
254+ const icon = child . querySelector ( 'svg' )
255+ expect ( icon ) . not . toBeInTheDocument ( )
255256 } )
256257
257- it ( 'should render loader on btn' , ( ) => {
258+ it ( 'should render loader on btn when testing connection ' , ( ) => {
258259 const rdiTestConnectionsSelectorMock = jest . fn ( ) . mockReturnValue ( {
259260 loading : true ,
260261 } )
You can’t perform that action at this time.
0 commit comments