fix: update notification provider type in tests and enhance email injection sanitization

This commit is contained in:
GitHub Actions
2026-03-06 06:31:11 +00:00
parent 5bbae48b6b
commit ee224adcf1
9 changed files with 572 additions and 77 deletions

View File

@@ -85,7 +85,7 @@ describe('Security Notification Settings on Notifications page', () => {
await user.click(await screen.findByTestId('add-provider-btn'));
const typeSelect = screen.getByTestId('provider-type') as HTMLSelectElement;
expect(Array.from(typeSelect.options).map((option) => option.value)).toEqual(['discord', 'gotify', 'webhook']);
expect(Array.from(typeSelect.options).map((option) => option.value)).toEqual(['discord', 'gotify', 'webhook', 'email']);
expect(typeSelect.value).toBe('discord');
const webhookInput = screen.getByTestId('provider-url') as HTMLInputElement;