Skip to content

Commit 6d4014a

Browse files
committed
update Config.spec.tsx to reflect new loading states
1 parent a5f2de3 commit 6d4014a

File tree

1 file changed

+4
-3
lines changed
  • redisinsight/ui/src/pages/rdi/pipeline-management/pages/config

1 file changed

+4
-3
lines changed

redisinsight/ui/src/pages/rdi/pipeline-management/pages/config/Config.spec.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)