← back to Dear Bubbe Nextjs
tests/test-modes-visual.sh
54 lines
#!/bin/bash
# Visual Test Script for Input Modes
# This script opens the browser to test the modes visually
echo "====================================="
echo "VISUAL TEST - INPUT MODES"
echo "====================================="
echo ""
echo "Opening Dear Bubbe in browser..."
echo "URL: http://45.61.58.125:3011"
echo ""
echo "PLEASE TEST THE FOLLOWING:"
echo ""
echo "1. TALK MODE (🎤):"
echo " - Click the Talk button"
echo " - Verify voice controls are visible"
echo " - Verify text input is HIDDEN"
echo " - Try speaking to test voice input"
echo ""
echo "2. TEXT MODE (⌨️):"
echo " - Click the Text button"
echo " - Verify text input box is visible"
echo " - Verify voice controls are HIDDEN"
echo " - Type a message and send it"
echo ""
echo "3. BOTH MODE (🎤⌨️):"
echo " - Click the Both button"
echo " - Verify BOTH voice controls AND text input are visible"
echo " - Try both speaking and typing"
echo ""
echo "4. MOBILE VIEW:"
echo " - Open DevTools (F12)"
echo " - Toggle device toolbar (Ctrl+Shift+M)"
echo " - Select iPhone X (375x812)"
echo " - Verify no overlapping components"
echo " - Test all three modes work on mobile"
echo ""
echo "====================================="
echo ""
# Try to open in default browser
if command -v xdg-open &> /dev/null; then
xdg-open "http://45.61.58.125:3011"
elif command -v open &> /dev/null; then
open "http://45.61.58.125:3011"
else
echo "Please open this URL manually in your browser:"
echo "http://45.61.58.125:3011"
fi
echo ""
echo "Test URL: http://45.61.58.125:3011"
echo ""