- Created admin page for direct event seeding (admin/seed-events-direct.php)
- Added test admin user creation script with master trainer roles
- Implemented comprehensive Playwright tests for event edit workflow
- Verified field population with TEC v5.0.8
- Confirmed 11 core fields properly populate in edit forms
- Added XWayland display configuration for headed browser testing
- Created seeding scripts that add events with complete metadata
Test Results:
- Login functionality: Working
- Event access: 20+ events accessible
- Field population: 11 essential fields confirmed
- Edit workflow: Functional with TEC Community Events
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
3.2 KiB
3.2 KiB
Event Seeding Instructions for Staging
Quick Start
The comprehensive event seeding script has been deployed to staging. To seed events and test editing functionality:
1. SSH to Staging Server
ssh roodev@146.190.76.204
cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html
2. Run the Seeding Script
wp eval-file wp-content/plugins/hvac-community-events/tools/seed-and-test-events.php
This will:
- ✅ Create test users (test_trainer, test_master)
- ✅ Create 2 venues (Dallas, Houston)
- ✅ Create 2 organizers
- ✅ Create 5 comprehensive test events
- ✅ Display all test URLs and credentials
Test Accounts Created
| Role | Password | |
|---|---|---|
| Trainer | test_trainer@example.com | TestTrainer123! |
| Master Trainer | test_master@example.com | TestMaster123! |
Test Events Created
- HVAC System Diagnostics Workshop - Aug 20, 2025
- Commercial Refrigeration Fundamentals - Aug 25-26, 2025
- Heat Pump Installation Masterclass - Sep 5-7, 2025
- Indoor Air Quality Solutions - Sep 12, 2025
- VRF Systems Advanced Training - Sep 18-20, 2025
Testing Event Edit Functionality
Option 1: WordPress Admin (Guaranteed to Work)
- Login to WordPress Admin: https://upskill-staging.measurequick.com/wp-admin/
- Navigate to Events → All Events
- Click "Edit" on any event
- Modify fields and click "Update"
Option 2: Custom HVAC Pages (If TEC Configured)
- Login: https://upskill-staging.measurequick.com/training-login/
- Dashboard: https://upskill-staging.measurequick.com/trainer/dashboard/
- Events List: https://upskill-staging.measurequick.com/trainer/events/
- Edit Event: Click edit link from list
Option 3: TEC Community URLs (If Pages Created)
- My Events: https://upskill-staging.measurequick.com/community/list/
- Add Event: https://upskill-staging.measurequick.com/community/add/
- Edit Event: https://upskill-staging.measurequick.com/community/edit/[event-id]/
Troubleshooting
If Custom Pages Don't Show Forms:
The TEC Community Events plugin needs configuration:
- Go to Events → Settings → Community
- Enable "Allow users to edit their submissions"
- Set default status to "Published" or "Draft"
- Save settings
If URLs Return 404:
Flush permalinks:
wp rewrite flush
To Verify Events Were Created:
wp post list --post_type=tribe_events --format=table
Additional Seeding Scripts Available
All these scripts are in /wp-content/plugins/hvac-community-events/:
tools/seed-and-test-events.php- Main comprehensive seedingtools/seed-events.php- Alternative seeding scriptbin/seed-comprehensive-events.sh- Bash version (requires SSH password)
Success Indicators
After running the seeding script, you should see:
- ✅ 5 events in the database
- ✅ Test users can login
- ✅ Events visible in WordPress admin
- ✅ Edit functionality works in admin
- ✅ Event IDs displayed for testing
Next Steps
- Run the seeding script as shown above
- Login with test credentials
- Navigate to event list
- Click edit on any event
- Verify all fields populate correctly
- Make changes and save
- Confirm changes persist
The system is ready for comprehensive event editing testing!