fix: align test expectations with updated proxy host handler behavior
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user