Files
igny8/test_routes.sh
2026-01-17 03:49:50 +00:00

64 lines
1.8 KiB
Bash

#!/bin/bash
# Quick Route Verification Script
# Tests that all new routes are accessible
echo "🧪 Testing Navigation Refactoring Routes..."
echo "============================================"
echo ""
BASE_URL="http://localhost:5173"
# Color codes
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
test_route() {
local route=$1
local description=$2
# Try to access the route (just check if it doesn't 404)
response=$(curl -s -o /dev/null -w "%{http_code}" "${BASE_URL}${route}" 2>/dev/null)
if [ "$response" = "200" ]; then
echo -e "${GREEN}${NC} ${description}"
echo " ${BASE_URL}${route}"
else
echo -e "${RED}${NC} ${description} (HTTP ${response})"
echo " ${BASE_URL}${route}"
fi
echo ""
}
echo "Testing New Automation Routes:"
echo "------------------------------"
test_route "/automation/overview" "Automation Overview (NEW)"
test_route "/automation/settings" "Pipeline Settings (NEW)"
test_route "/automation/run" "Run Now (Simplified)"
echo ""
echo "Testing Publisher Routes:"
echo "-------------------------"
test_route "/publisher/settings" "Publish Settings (NEW - moved from Sites)"
test_route "/publisher/content-calendar" "Content Calendar (Existing)"
echo ""
echo "Testing Sites Settings:"
echo "-----------------------"
test_route "/sites" "Sites List"
echo ""
echo "============================================"
echo "Frontend Server: ${BASE_URL}"
echo "Backend API: http://localhost:8000"
echo ""
echo "📝 Next Steps:"
echo " 1. Open browser: ${BASE_URL}/automation/overview"
echo " 2. Test site selector in Publisher Settings"
echo " 3. Verify Run Now page is simplified"
echo " 4. Check Sites Settings has no Publishing tab"
echo ""
echo "📚 Full Testing Guide: docs/plans/IMPLEMENTATION_COMPLETE.md"
echo ""