#!/bin/bash

# Create test announcement for modal functionality
echo "Creating test announcement on staging..."

sshpass -p 'Cj4$5jdG*9nK' ssh root@upskill-staging.measurequick.com "cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html && wp post create \
  --post_type=hvac_announcement \
  --post_title='Modal Test Announcement' \
  --post_content='<p>This is a test announcement to verify that the modal popup functionality works correctly when clicking Read More buttons.</p><p>The modal should display this full content along with the announcement title, date, and author information in a properly styled overlay.</p><p>Testing features:</p><ul><li>Modal opens on button click</li><li>Content loads via AJAX</li><li>Modal closes with X button</li><li>Modal closes when clicking outside</li><li>Escape key closes modal</li></ul>' \
  --post_status=publish \
  --post_author=1"

echo "Test announcement created!"