- Add 26 documentation files including test reports, deployment guides, and troubleshooting documentation - Include 3 CSV data files for trainer imports and user registration tracking - Add 43 JavaScript test files covering mobile optimization, Safari compatibility, and E2E testing - Include 18 PHP utility files for debugging, geocoding, and data analysis - Add 12 shell scripts for deployment verification, user management, and database operations - Update .gitignore with whitelist patterns for development files, documentation, and CSV data 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			54 lines
		
	
	
		
			No EOL
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			No EOL
		
	
	
		
			1.6 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const { chromium } = require('playwright');
 | |
| 
 | |
| const BASE_URL = 'https://upskill-staging.measurequick.com';
 | |
| 
 | |
| async function checkPageStatus() {
 | |
|   const browser = await chromium.launch({ headless: true });
 | |
|   const page = await browser.newPage();
 | |
|   
 | |
|   console.log('Checking page status on staging server...\n');
 | |
|   
 | |
|   const pages = [
 | |
|     { name: 'Registration Form', url: '/trainer-registration/' },
 | |
|     { name: 'Venues List', url: '/trainer/venue/list/' },
 | |
|     { name: 'Manage Venue', url: '/trainer/venue/manage/' },
 | |
|     { name: 'Profile View', url: '/trainer/profile/' },
 | |
|     { name: 'Profile Edit', url: '/trainer/profile/edit/' },
 | |
|     { name: 'Organizers List', url: '/trainer/organizer/list/' },
 | |
|     { name: 'Manage Organizer', url: '/trainer/organizer/manage/' }
 | |
|   ];
 | |
|   
 | |
|   for (const pageInfo of pages) {
 | |
|     try {
 | |
|       const response = await page.goto(`${BASE_URL}${pageInfo.url}`, {
 | |
|         waitUntil: 'domcontentloaded',
 | |
|         timeout: 10000
 | |
|       });
 | |
|       
 | |
|       const status = response.status();
 | |
|       const title = await page.title();
 | |
|       
 | |
|       console.log(`${pageInfo.name}:`);
 | |
|       console.log(`  URL: ${pageInfo.url}`);
 | |
|       console.log(`  Status: ${status}`);
 | |
|       console.log(`  Title: ${title}`);
 | |
|       
 | |
|       if (status === 200) {
 | |
|         await page.screenshot({ 
 | |
|           path: `screenshots/${pageInfo.name.toLowerCase().replace(/\s+/g, '-')}.png`,
 | |
|           fullPage: true
 | |
|         });
 | |
|         console.log(`  Screenshot: Saved`);
 | |
|       }
 | |
|       
 | |
|       console.log('');
 | |
|       
 | |
|     } catch (error) {
 | |
|       console.log(`${pageInfo.name}: ERROR - ${error.message}\n`);
 | |
|     }
 | |
|   }
 | |
|   
 | |
|   await browser.close();
 | |
| }
 | |
| 
 | |
| checkPageStatus().catch(console.error); |