Skip to content

Commit b6f54ca

Browse files
committed
fix manual connection form tests
1 parent bbcf01a commit b6f54ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/ManualConnectionFrom.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ describe('InstanceForm', () => {
188188
})
189189
expect(handleSubmit).toHaveBeenCalledWith(
190190
expect.objectContaining({
191-
port: '123',
191+
port: 123,
192192
}),
193193
)
194194
})
@@ -1264,11 +1264,11 @@ describe('InstanceForm', () => {
12641264
)
12651265

12661266
expect(screen.getByTestId('timeout')).toBeInTheDocument()
1267-
expect(screen.getByTestId('timeout')).toHaveAttribute('maxLength', '7')
12681267

12691268
fireEvent.change(screen.getByTestId('timeout'), {
12701269
target: { value: '2000000' },
12711270
})
1271+
fireEvent.focusOut(screen.getByTestId('timeout'))
12721272

12731273
expect(screen.getByTestId('timeout')).toHaveAttribute('value', '1000000')
12741274
})
@@ -1285,7 +1285,7 @@ describe('InstanceForm', () => {
12851285
target: { value: '11a2EU$#@' },
12861286
})
12871287

1288-
expect(screen.getByTestId('timeout')).toHaveAttribute('value', '112')
1288+
expect(screen.getByTestId('timeout')).toHaveAttribute('value', '30')
12891289
})
12901290
})
12911291

0 commit comments

Comments
 (0)