import { notificationManager } from "./notificationManager"; // Test function to trigger each notification type export async function testAllNotifications() { console.log("Testing all notification types..."); // Test success notification setTimeout(async () => { console.log("Testing SUCCESS notification"); await notificationManager.notifySuccess("Test task completed!"); }, 1000); // Test error notification setTimeout(async () => { console.log("Testing ERROR notification"); await notificationManager.notifyError("Test error occurred!"); }, 3000); // Test permission notification setTimeout(async () => { console.log("Testing PERMISSION notification"); await notificationManager.notifyPermission("Test permission request!"); }, 5000); // Test connection notification setTimeout(async () => { console.log("Testing CONNECTION notification"); await notificationManager.notifyConnection("Test connection established!"); }, 7000); // Test task start notification setTimeout(async () => { console.log("Testing TASK_START notification"); await notificationManager.notifyTaskStart("Test task starting!"); }, 9000); } // Make it available on window for easy testing if (typeof window !== "undefined") { (window as unknown as { testNotifications: typeof testAllNotifications }).testNotifications = testAllNotifications; }