#!/bin/bash echo "Waiting for notification service to be ready..." # Wait for the notification service to be available max_attempts=8 attempt=0 while [ $attempt -lt $max_attempts ]; do if notify-send -a "test" "Service Ready Test" "Testing..." 2>/dev/null; then echo "Notification service is ready!" break fi echo "Attempt $((attempt + 1))/$max_attempts - waiting..." sleep 2 attempt=$((attempt + 1)) done if [ $attempt -eq $max_attempts ]; then echo "Timeout waiting for notification service" exit 1 fi echo "" echo "Running layout and functionality tests..." echo "" # Now run the actual tests notify-send -a "firefox" "Test 1" "Firefox notification 1" sleep 0.5 notify-send -a "firefox" "Test 2" "Firefox notification 2" sleep 1 notify-send -a "MyCustomApp" "Custom 1" "Custom app notification 1" sleep 0.5 notify-send -a "MyCustomApp" "Custom 2" "Custom app notification 2" sleep 1 notify-send -a "code" "VS Code 1" "Code notification 1" sleep 0.5 notify-send -a "code" "VS Code 2" "Code notification 2" echo "" echo "✅ All notifications sent successfully!" echo ""