fix: align test expectations with updated proxy host handler behavior

This commit is contained in:
GitHub Actions
2026-03-21 03:05:10 +00:00
parent a2fea2b368
commit ad7e97e7df
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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'))