diff --git a/redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/ManualConnectionFrom.spec.tsx b/redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/ManualConnectionFrom.spec.tsx index 1269b0caf6..3c63772e5f 100644 --- a/redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/ManualConnectionFrom.spec.tsx +++ b/redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/ManualConnectionFrom.spec.tsx @@ -1341,8 +1341,8 @@ describe('InstanceForm', () => { />, ) - // Host is not shown in edit mode (shown as info above form) - expect(screen.queryByTestId('host')).not.toBeInTheDocument() + // Host is shown but disabled for Azure databases + expect(screen.getByTestId('host')).toBeDisabled() // Port, username, password should be disabled expect(screen.getByTestId('port')).toBeDisabled() expect(screen.getByTestId('username')).toBeDisabled() @@ -1381,8 +1381,8 @@ describe('InstanceForm', () => { />, ) - // Host is not shown in edit mode (shown as info above form) - expect(screen.queryByTestId('host')).not.toBeInTheDocument() + // Host is shown and editable for non-Azure databases in edit mode + expect(screen.getByTestId('host')).not.toBeDisabled() // Port, username, password should NOT be disabled for non-Azure databases expect(screen.getByTestId('port')).not.toBeDisabled() expect(screen.getByTestId('username')).not.toBeDisabled() diff --git a/redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/forms/EditConnection.tsx b/redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/forms/EditConnection.tsx index f0aafe5be0..b3f4c82f7e 100644 --- a/redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/forms/EditConnection.tsx +++ b/redisinsight/ui/src/pages/home/components/manual-connection/manual-connection-form/forms/EditConnection.tsx @@ -63,7 +63,7 @@ const EditConnection = (props: Props) => { formik={formik} showFields={{ alias: true, - host: (!isEditMode || isCloneMode) && !isFromCloud, + host: !isFromCloud, port: !isFromCloud, timeout: true, }}