fix FE test

This commit is contained in:
laurenashleigh
2026-01-12 11:46:50 +00:00
parent d03762dd63
commit b2a3e4997c
@@ -249,6 +249,11 @@ describe('AlertRuleDrawerForm', () => {
// Click Create
await user.click(screen.getByRole('button', { name: /Create/i }));
// Wait for the execute function to be called
await waitFor(() => {
expect(mockExecute).toHaveBeenCalled();
});
// Drawer should close on success
await waitFor(() => {
expect(onClose).toHaveBeenCalled();