diff --git a/backend/internal/api/handlers/proxy_host_handler_test.go b/backend/internal/api/handlers/proxy_host_handler_test.go index 477f7238..6233eeaf 100644 --- a/backend/internal/api/handlers/proxy_host_handler_test.go +++ b/backend/internal/api/handlers/proxy_host_handler_test.go @@ -1552,7 +1552,7 @@ func TestProxyHostUpdate_SecurityHeaderProfile_InvalidString(t *testing.T) { var result map[string]any require.NoError(t, json.Unmarshal(resp.Body.Bytes(), &result)) - require.Contains(t, result["error"], "invalid security_header_profile_id") + require.Contains(t, result["error"], "security header profile not found") } // Test invalid float value (should fail gracefully) diff --git a/frontend/src/components/__tests__/ProxyHostForm.test.tsx b/frontend/src/components/__tests__/ProxyHostForm.test.tsx index 665e384b..5117e514 100644 --- a/frontend/src/components/__tests__/ProxyHostForm.test.tsx +++ b/frontend/src/components/__tests__/ProxyHostForm.test.tsx @@ -1311,7 +1311,7 @@ describe('ProxyHostForm', () => { await userEvent.type(screen.getByLabelText(/^Host/), '192.168.1.100') await userEvent.type(screen.getByLabelText(/^Port/), '80') - const advancedConfigField = screen.getByPlaceholderText('Additional Caddy directives...') + const advancedConfigField = screen.getByRole('textbox', { name: /Advanced Caddy Config/i }) await userEvent.type(advancedConfigField, 'header /api/* X-Custom-Header "test"') await userEvent.click(screen.getByText('Save'))