upskill-event-manager/wordpress-dev/tests/e2e
bengizmo 261ab99e88 docs: Update testing documentation and add deployment resilience scripts
- Enhanced documentation with selector stability best practices
- Added recommendations for resilient testing and deployment
- Created verify-selectors.sh script to validate critical selectors pre-deployment
- Added pre-deploy-validation.sh for comprehensive environment validation
- Improved troubleshooting section with specific recommendations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 20:37:32 -03:00
..
archived docs: Update certificate testing documentation and methodology 2025-05-20 23:10:19 -03:00
data docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
docs feat: Harmonize Playwright testing capabilities 2025-05-21 10:33:48 -03:00
pages fix: Update login form selectors to match actual page structure 2025-05-21 20:21:16 -03:00
test-plan test: Enhance trainer journey with certificate functionality 2025-05-21 10:07:35 -03:00
utils test: Optimize E2E testing infrastructure for certificates 2025-05-21 09:53:36 -03:00
certificate-basic.spec.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
certificate-generation-checked-in.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
certificate-generation-manual.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
certificate-generation-non-checked-in.test.ts docs: Update certificate testing documentation and methodology 2025-05-20 23:10:19 -03:00
certificate-generation.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
certificate-management-manual.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
certificate-management.test.ts docs: Update certificate testing documentation and methodology 2025-05-20 23:10:19 -03:00
certificate-test-clean.spec.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
CERTIFICATE_TESTING_GUIDE.md docs: Update certificate testing documentation and methodology 2025-05-20 23:10:19 -03:00
certificates.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
check-dashboard-elements.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
check-dashboard-stats.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
check-page-contents.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
COMMIT_MESSAGE.md docs: Update certificate testing documentation and methodology 2025-05-20 23:10:19 -03:00
create-event.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
dashboard-filter.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
dashboard-final-check.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
dashboard-improvements.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
dashboard-layout.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
dashboard-screenshot.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
dashboard-stats.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
dashboard.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-create-event.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-create-link-simple.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-create-link.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-dashboard-details.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-dashboard-final.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-dashboard-stats-simple.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-dashboard-stats.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-dashboard.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-event-fields.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-event-listing.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-event-ownership.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-event-submission-direct.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-event-submission-errors.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-event-submission-final.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-event-submission.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-filters.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-find-events.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-login-page.spec.ts fix: Update login form selectors to match actual page structure 2025-05-21 20:21:16 -03:00
debug-login.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-modify-flow.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
debug-submit-event.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
domain-verification-basic.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
email-attendees.test.ts feat: Add Email Attendees functionality (Phase 2) 2025-05-20 10:33:03 -03:00
event-creation-api.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-complete.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-final.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-fixed-validation.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-fixed.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-manage.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-no-cache.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-tinymce.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-trainer.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-with-cache-clear.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-with-fix.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-creation-working.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-debug-final.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-submission-fix.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-summary-detailed.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
event-summary.spec.ts test: Improve Event Summary authentication tests 2025-05-20 09:28:49 -03:00
final-dashboard-test.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
final-dashboard-verification.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
final-deployment-verification.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
final-zoho-verification.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
find-event-form.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
global-setup.ts feat(testing): Implement comprehensive trainer journey test suite with Page Object Model 2025-05-18 15:42:00 -03:00
global-teardown.ts feat(testing): Implement comprehensive trainer journey test suite with Page Object Model 2025-05-18 15:42:00 -03:00
homepage.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
inspect-form-fields.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
investigate-form-submission.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
login-test.spec.ts fix: Update login form selectors to match actual page structure 2025-05-21 20:21:16 -03:00
login.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
manual-dashboard-check.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
optimized-certificate-tests.ts test: Optimize E2E testing infrastructure for certificates 2025-05-21 09:45:00 -03:00
order-summary.test.ts feat: Implement Order Summary page functionality 2025-05-20 09:56:28 -03:00
page-rendering-verification.test.ts fix: Correct template path for dashboard shortcode 2025-05-20 10:41:18 -03:00
page-ui-elements.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
page-verification-report.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
playwright.config.ts feat(testing): Implement comprehensive trainer journey test suite with Page Object Model 2025-05-18 15:42:00 -03:00
profile-verification.spec.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
README.md feat: Harmonize Playwright testing capabilities 2025-05-21 10:33:48 -03:00
registration.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
simple-certificates.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
simple-dashboard-check.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
simple-event-test.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
simple-event-v2.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
simple-field-test.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
simple-page-content-check.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
simple-plugin-deployment.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
staging-plugin-investigation.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
test-event-with-venue-organizer.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
test-installer-deployment.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
test-modify-draft-events.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
test-modify-event.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
test-modify-events-my-events.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
test-refactored-dashboard.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
test-zoho-admin-interface.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
test-zoho-connection.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
TESTING-STRATEGY.md docs: Update testing documentation and add deployment resilience scripts 2025-05-21 20:37:32 -03:00
trainer-journey-extended.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
trainer-journey-final.test.ts update: Change staging domain to upskill-staging.measurequick.com 2025-05-21 16:42:10 -03:00
trainer-journey-harmonized.test.ts feat: Harmonize Playwright testing capabilities 2025-05-21 10:33:48 -03:00
trainer-journey-simplified.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
trainer-journey-updated.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
trainer-journey-with-certificates.test.ts test: Enhance trainer journey with certificate functionality 2025-05-21 10:07:35 -03:00
trainer-journey.test.ts fix: Update login form selectors to match actual page structure 2025-05-21 20:21:16 -03:00
trainer-profile-edit.spec.ts feat: Add trainer profile editing functionality 2025-05-20 09:47:22 -03:00
trainer-profile-page-object.spec.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
trainer-profile.spec.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
TRAINER_JOURNEY_TEST_SUMMARY.md docs: Update certificate testing documentation and methodology 2025-05-20 23:10:19 -03:00
verify-certificate-data.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-certificate-test-data.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-dashboard-author-fix-v2.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-dashboard-author-fix.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-dashboard-content.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-dashboard-events.spec.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-dashboard-events.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-dashboard-fix.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-dashboard-shows-events.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-field-mapping.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-plugin-activation.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-plugin-deployment.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
verify-plugin-status.test.ts feat: Add test user creation and plugin verification scripts 2025-05-21 20:12:38 -03:00
verify-test-events.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
working-event-creation.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
zoho-domain-update-verification.test.ts docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00

HVAC Community Events - E2E Tests

Trainer Journey Testing

This directory contains end-to-end tests for the complete Trainer User Journey as defined in the project requirements.

Quick Start

  1. Verify your setup:

    cd tests/e2e
    ./verify-setup.sh
    
  2. Run the trainer journey tests:

    cd ../..  # Go to wordpress-dev directory
    ./bin/run-tests.sh --trainer-journey
    
  3. Run certificate tests:

    # Using NPM scripts
    npm run test:basic        # Run basic certificate tests
    npm run test:journey      # Run full trainer journey with certificates
    npm run test:cert         # Run certificate tests
    npm run test:cert:gen     # Run certificate generation tests
    
    # Using advanced test runner
    ./bin/run-advanced-tests.sh                        # Basic certificate tests
    ./bin/run-advanced-tests.sh --test journey         # Trainer journey
    ./bin/run-advanced-tests.sh --test journey --debug # With debug mode
    ./bin/run-advanced-tests.sh --test all             # All certificate tests
    
  4. For detailed testing information:

    # Read the harmonized testing documentation
    cat tests/e2e/docs/harmonized-testing.md
    

Test Coverage

The test suite covers the following trainer journey steps:

  • Login & Authentication (Steps 1-2)
  • Dashboard Access (Step 3)
  • Event Management (Step 4)
    • Create events (Step 4a)
    • View event list (Step 4b)
    • Modify events (Step 4c)
    • Delete events (Step 4d)
  • Event Details View (Step 5)
  • Event Statistics (Step 6 - In Progress)
  • Order & Attendee Details (Steps 7-8 - Pending)
  • Email Communication (Step 9 - Phase 2)
  • Attendee Check-in (Step 10)
  • Certificate Generation (Step 11 - Now Implemented!)
    • Generate certificates for attendees
    • View and manage certificates
    • Email and revoke certificates

Project Structure

tests/e2e/
├── pages/              # Page Object Model classes
│   ├── BasePage.ts
│   ├── LoginPage.ts
│   ├── DashboardPage.ts
│   ├── CreateEventPage.ts
│   ├── EventSummaryPage.ts
│   ├── ModifyEventPage.ts
│   └── CertificatePage.ts
├── utils/              # Utility classes
│   ├── Config.ts         # Centralized configuration
│   └── CertificateTestData.ts # Certificate test data
├── data/               # Test data
│   ├── test-users.ts
│   └── test-events.ts
├── docs/               # Documentation
│   ├── trainer-journey-testing.md
│   └── harmonized-testing.md  # NEW! Harmonized testing approach
├── test-plan/          # Test planning documents
│   └── trainer-journey-verification.md
├── trainer-journey.test.ts  # Original trainer journey
├── trainer-journey-harmonized.test.ts  # NEW! Harmonized trainer journey
├── certificate-basic.spec.ts  # NEW! Basic certificate tests (compatible with all Playwright versions)
├── certificate-generation-checked-in.test.ts  # Certificate generation tests
├── certificates.test.ts  # Certificate functionality tests
├── CERTIFICATE_TESTING_GUIDE.md  # Certificate testing documentation
├── verify-setup.sh     # Setup verification script
└── README.md          # This file

Advanced Test Infrastructure

bin/
├── run-tests.sh              # Original test runner 
├── run-playwright-tests.sh   # Basic Playwright test runner
├── run-advanced-tests.sh     # NEW! Advanced test runner with configuration options
├── setup-staging-test-users.sh  # Setup test users
└── certificate-test.js       # Standalone certificate test script

Running Specific Tests

Original Test Runner

# Run all E2E tests
./bin/run-tests.sh --e2e

# Run only trainer journey tests
./bin/run-tests.sh --trainer-journey

# Run specific test scenarios
./bin/run-tests.sh --e2e --grep @login
./bin/run-tests.sh --e2e --grep @dashboard
./bin/run-tests.sh --e2e --grep @create-event

# Run certificate tests (legacy method)
./bin/run-certificate-tests.sh generation
./bin/run-certificate-tests.sh reports
# Run specific test files
npm run test:journey     # Full trainer journey with certificates
npm run test:basic       # Basic certificate tests
npm run test:cert        # Certificate tests
npm run test:cert:gen    # Certificate generation tests

# Run with debug mode
npm run test:journey:debug

# Run with UI mode
npm run test:journey:ui

# Run tests with advanced configuration
./bin/run-advanced-tests.sh --test journey --headed  # With UI visible
./bin/run-advanced-tests.sh --test all --debug      # All certificate tests with debug

Test Results

  • Console output shows real-time test progress
  • Screenshots saved in test-results/screenshots/
  • Test reports generated in test-results/

Latest Test Summary (2025-05-21)

The trainer journey and certificate tests are now PASSING with the following coverage:

  1. Login and Dashboard Access: Successfully tests trainer login and dashboard navigation
  2. Event Management: Complete coverage of event CRUD operations:
    • Create new events with all required fields
    • View events in My Events page (both upcoming and past)
    • Modify existing events
    • Delete events with confirmation
  3. Event Details: Views individual event pages
  4. Certificate Generation: Fully implemented!
    • Generate certificates for event attendees
    • Manage certificates (view, email, revoke)
    • Filter and paginate certificate lists
    • Filter by attendee name and email

Key improvements:

  • Harmonized Testing Approach: Consistent test structure that works with the latest Playwright version
  • Advanced Test Runner: Simplified execution with multiple configuration options
  • Improved Page Objects: Enhanced page object models with better encapsulation and reusability
  • Consistent Dependencies: Fixed Playwright version conflicts in package.json
  • Comprehensive Documentation: Added detailed testing documentation

Key findings:

  • Events created during testing appear in My Events but not in main dashboard (application issue)
  • TinyMCE editor requires special handling in tests
  • Multiple fallback strategies implemented for form fields
  • Certificate generation properly handles checked-in vs. non-checked-in attendees

For complete details on certificate testing, see the Certificate Testing Guide and Harmonized Testing Approach.

Prerequisites

  1. Environment Setup

    • .env file with staging server credentials
    • Node.js and npm installed
    • Playwright dependencies installed
  2. Staging Server Requirements

    • Test user test_trainer exists
    • Required plugins activated
    • HVAC Community Events plugin deployed

Troubleshooting

If tests fail, check:

  1. Network Issues

    • Staging server is accessible
    • No proxy/firewall blocking
  2. Authentication Issues

    • Test user credentials are correct
    • User has proper role assigned
  3. Element Not Found

    • Page structure may have changed
    • Update selectors in page objects
  4. Certificate Generation Issues

    • Verify events have attendees
    • Check if attendees have proper check-in status
    • Review certificate storage permissions
  5. Playwright Version Conflicts

    • Check package.json to ensure Playwright is in devDependencies
    • Verify you're using version ^1.52.0
    • Run npm ci to ensure clean installation
    • Use the certificate-basic.spec.ts file which avoids test.describe()
  6. Advanced Test Runner Issues

    • Ensure the script is executable: chmod +x bin/run-advanced-tests.sh
    • Verify your .env file has the correct credentials
    • Try running with the --headed flag to see browser interactions

Contributing

When adding new tests:

  1. Use the Page Object Model pattern
  2. Add test data to centralized files
  3. Update documentation
  4. Follow existing naming conventions
  5. Use the Config utility for environment variables

Support

For issues or questions:

  • Check the troubleshooting guide above
  • Review test output and screenshots
  • Check staging server logs
  • Contact the development team