diff --git a/frontend/src/components/ProxyHostForm.tsx b/frontend/src/components/ProxyHostForm.tsx index 4df9e055..d055a295 100644 --- a/frontend/src/components/ProxyHostForm.tsx +++ b/frontend/src/components/ProxyHostForm.tsx @@ -936,7 +936,12 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor setFormData(prev => ({ ...prev, websocket_support: needsWebsockets || prev.websocket_support })) }} > - + @@ -1279,6 +1284,7 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor type="button" onClick={onCancel} disabled={loading} + data-testid="proxy-host-cancel" className="px-6 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded-lg font-medium transition-colors disabled:opacity-50" > Cancel @@ -1288,6 +1294,7 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor type="button" onClick={handleTestConnection} disabled={loading || testStatus === 'testing' || !formData.forward_host || !formData.forward_port} + data-testid="proxy-host-test-connection" className={`px-4 py-2 rounded-lg font-medium transition-colors flex items-center gap-2 disabled:opacity-50 ${ testStatus === 'success' ? 'bg-green-600 hover:bg-green-500 text-white' : testStatus === 'error' ? 'bg-red-600 hover:bg-red-500 text-white' : @@ -1304,6 +1311,7 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor @@ -71,7 +71,7 @@ export default function Certificates() { {/* Upload Certificate Dialog */} - + {t('certificates.uploadCertificate')} @@ -88,6 +88,7 @@ export default function Certificates() { setCertFile(e.target.files?.[0] || null)} @@ -99,6 +100,7 @@ export default function Certificates() { setKeyFile(e.target.files?.[0] || null)} diff --git a/frontend/src/pages/ProxyHosts.tsx b/frontend/src/pages/ProxyHosts.tsx index 98169d16..b0065930 100644 --- a/frontend/src/pages/ProxyHosts.tsx +++ b/frontend/src/pages/ProxyHosts.tsx @@ -503,6 +503,7 @@ export default function ProxyHosts() { cell: (host) => ( updateHost(host.uuid, { enabled: checked })} /> ), @@ -516,6 +517,7 @@ export default function ProxyHosts() {