Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Bind webhook persistence controls to the actual URL label

pulse-triage[bot]fcaaabe25bbd
diff --git a/frontend-modern/src/components/Alerts/WebhookConfig.persistence.test.tsx b/frontend-modern/src/components/Alerts/WebhookConfig.persistence.test.tsx
index c81e355ebc..db539db324 100644
--- a/frontend-modern/src/components/Alerts/WebhookConfig.persistence.test.tsx
+++ b/frontend-modern/src/components/Alerts/WebhookConfig.persistence.test.tsx
@@ -65,7 +65,7 @@ function mount(initial: Webhook[] = []) {
function openNewDraft() {
fireEvent.click(screen.getByRole('button', { name: '+ Add Webhook' }));
fireEvent.input(screen.getByLabelText('Name'), { target: { value: 'New destination' } });
- fireEvent.input(screen.getByLabelText('URL'), {
+ fireEvent.input(screen.getByLabelText('Webhook URL'), {
target: { value: 'https://example.test/new' },
});
}
@@ -112,7 +112,7 @@ describe('webhook persistence acknowledgement', () => {
await waitFor(() => expect(screen.getByRole('alert')).toHaveTextContent('Could not confirm'));
expect(screen.getByLabelText('Name')).toHaveValue('New destination');
- expect(screen.getByLabelText('URL')).toHaveValue('https://example.test/new');
+ expect(screen.getByLabelText('Webhook URL')).toHaveValue('https://example.test/new');
expect(screen.getByLabelText('Custom header 1 value')).toHaveValue('application/custom+json');
expect(screen.getByLabelText('Name')).toBeEnabled();
expect(owner.webhooks()).toEqual([]);