Files
orangecat/scripts/test/test-auth-flow.sh
Your Name 38cc4669d8 chore: comprehensive codebase cleanup and organization
- Move 100+ files from root to proper directories
  - Migration scripts → scripts/db/
  - SQL files → supabase/sql/archive/
  - Test/debug scripts → scripts/test/
  - Documentation → docs/archive/ (organized by category)
  - Shell scripts → scripts/ (organized by category)

- Fix test organization
  - Remove nested tests/unit/tests/unit/ structure
  - Consolidate test files to proper locations

- Update documentation references
  - Update migration script paths in workflow docs
  - Update scripts/README.md with moved file notes

- Delete placeholder files
  - Remove empty placeholder.ipynb

- Result: Root directory now contains only essential config files
- Result: Professional, organized codebase structure
- Result: All files in proper locations per project standards

See docs/CLEANUP_COMPLETE.md for full details.
2025-12-21 22:57:54 +01:00

19 lines
869 B
Bash
Executable File

#!/bin/bash
# Test login -> profile edit flow
BASE_URL="http://localhost:3000"
echo "1. Testing homepage..."
curl -s "$BASE_URL" | grep -q "orangecat" && echo "✓ Homepage loads" || echo "✗ Homepage failed"
echo "2. Testing auth page..."
curl -s "$BASE_URL/auth" | grep -q "auth" && echo "✓ Auth page loads" || echo "✗ Auth page failed"
echo "3. Testing dashboard redirect (should redirect to /auth)..."
REDIRECT=$(curl -s -o /dev/null -w "%{redirect_url}" "$BASE_URL/dashboard")
[[ "$REDIRECT" == *"/auth"* ]] && echo "✓ Dashboard redirects to auth" || echo "✗ Dashboard redirect failed"
echo "4. Testing profile edit page (should redirect to /auth)..."
REDIRECT=$(curl -s -o /dev/null -w "%{redirect_url}" "$BASE_URL/profile/edit")
[[ "$REDIRECT" == *"/auth"* ]] && echo "✓ Profile edit redirects to auth" || echo "✗ Profile edit redirect failed"