- FEAT: Добавлены поля arve_checked (int) и arve_makstud (string) в production_records
- POST /api/records: INSERT с arve_checked, arve_makstud
- PUT /api/records/🆔 UPDATE с arve_checked, arve_makstud
- Docker: docker-compose.prod.yml, ecosystem.config.cjs (PM2)
- wrangler.toml → wrangler.jsonc
- seed.sql: полные тестовые данные
- test_browser.js: E2E тесты
- Удалены старые HOTFIX-файлы (v4.1.11-v4.1.23)
- Удалены data/*.sqlite из репозитория
36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
const axios = require('axios');
|
|
|
|
async function testPage() {
|
|
try {
|
|
// 1. Get the main page
|
|
const response = await axios.get('http://localhost:3000');
|
|
console.log('✅ Page loads:', response.status === 200);
|
|
|
|
// 2. Check if app.js exists
|
|
const appJsResponse = await axios.get('http://localhost:3000/static/app.js');
|
|
console.log('✅ app.js loads:', appJsResponse.status === 200);
|
|
console.log('📦 app.js size:', appJsResponse.data.length, 'bytes');
|
|
|
|
// 3. Check if DOMContentLoaded exists in app.js
|
|
const hasDOMContentLoaded = appJsResponse.data.includes('DOMContentLoaded');
|
|
console.log('✅ DOMContentLoaded found:', hasDOMContentLoaded);
|
|
|
|
// 4. Check if loadRecords exists
|
|
const hasLoadRecords = appJsResponse.data.includes('function loadRecords');
|
|
console.log('✅ loadRecords found:', hasLoadRecords);
|
|
|
|
// 5. Check if toggleDate exists
|
|
const hasToggleDate = appJsResponse.data.includes('function toggleDate');
|
|
console.log('✅ toggleDate found:', hasToggleDate);
|
|
|
|
// 6. Check HTML for tbody
|
|
const hasTbody = response.data.includes('<tbody id="recordsTable"');
|
|
console.log('✅ tbody#recordsTable in HTML:', hasTbody);
|
|
|
|
} catch (error) {
|
|
console.error('❌ Error:', error.message);
|
|
}
|
|
}
|
|
|
|
testPage();
|