#!/bin/bash # Manual Test Script for Anchor Visibility # Run this script and follow the on-screen instructions set -e echo "======================================" echo "Anchor Visibility Manual Test" echo "======================================" echo "" # Check if server is running if ! curl -s http://localhost:8081 > /dev/null; then echo "❌ ERROR: Site builder not running on http://localhost:8081" echo "Start it with: cd /home/jknapp/code/site-builder && docker compose up -d" exit 1 fi echo "✅ Server is running on http://localhost:8081" echo "" echo "STEP 1: Test Editor Visibility" echo "------------------------------" echo "1. Open http://localhost:8081 in your browser" echo "2. Find 'Anchor Point' block in the left panel" echo "3. Click it to add to the canvas" echo "4. You should see a box with:" echo " - Dashed gray border" echo " - Light blue background" echo " - ⚓ anchor icon" echo " - Editable text field: 'anchor-1'" echo "" echo "5. Click on the text field and change the name" echo "6. Verify the anchor's ID updates automatically" echo "" read -p "Press Enter when you've verified editor visibility..." echo "" echo "STEP 2: Test Preview Mode" echo "------------------------" echo "1. Click the 'Preview' button in the top toolbar" echo "2. A new window/tab should open" echo "3. The anchor point should be INVISIBLE" echo "4. (Optional) Open DevTools and verify:" echo " - Element exists in DOM: