24 lines
857 B
Bash
Executable File
24 lines
857 B
Bash
Executable File
#!/bin/bash
|
|
# Test template loading functionality
|
|
|
|
echo "🧪 Testing Template Loading Fix"
|
|
echo "================================"
|
|
|
|
echo "1. Testing templates API endpoint..."
|
|
curl -s http://localhost:5000/api/templates | jq -r '.[] | "\(.id): \(.name) - \(.content[0:50])..."'
|
|
|
|
echo ""
|
|
echo "2. Testing specific template by ID..."
|
|
curl -s http://localhost:5000/api/templates/1 | jq '.template.name, .template.template'
|
|
|
|
echo ""
|
|
echo "3. Check that no duplicate loadTemplate functions exist in JavaScript..."
|
|
grep -n "loadTemplate.*(" /mnt/storagessd1tb/ABD\ Texting\ Testing/src/static/js/dashboard.js
|
|
|
|
echo ""
|
|
echo "✅ Testing complete. Please manually test in browser:"
|
|
echo " 1. Go to http://localhost:5000"
|
|
echo " 2. Select 'Use Saved Template' dropdown"
|
|
echo " 3. Choose a template"
|
|
echo " 4. Verify the message template field is populated"
|