#!/usr/bin/env node /** * ⛔ DEPRECATED - January 2025 * This test file has been deprecated and replaced by comprehensive E2E testing framework * * Reasons for deprecation: * - Tests old event creation/management forms that have been replaced * - Individual test files replaced by comprehensive test suites * - Page Object Model (POM) architecture provides better test organization * - Modern test framework with better error handling and reporting * * Replacement: test-master-trainer-e2e.js + test-comprehensive-validation.js * - Comprehensive E2E testing covering all event workflows * - Page Object Model for maintainable tests * - Better test organization and reporting * - Docker-based testing environment * * See: DEPRECATED-FILES.md for full migration details */ const { chromium } = require('playwright'); async function testManageEventFinal() { const browser = await chromium.launch({ headless: false }); const context = await browser.newContext(); const page = await context.newPage(); console.log('=== Final Test: Manage Event Page ===\n'); // Login console.log('1. Logging in...'); await page.goto('https://upskill-staging.measurequick.com/training-login/'); await page.fill('#user_login', 'ben+test44@measurequick.com'); await page.fill('#user_pass', 'MQtrainer2024!'); await page.locator('input[type="submit"], #wp-submit').first().click(); // Wait for redirect await page.waitForURL('**/trainer/dashboard/**', { timeout: 10000 }).catch(() => {}); // Navigate to manage event page console.log('2. Navigating to manage event page...'); await page.goto('https://upskill-staging.measurequick.com/trainer/event/manage/'); await page.waitForLoadState('networkidle'); // Check for HTML comments console.log('\n3. Checking for HTML comments...'); const pageContent = await page.content(); const hasWpShortcodeComment = pageContent.includes('