- Implemented tests for debugging browser cache vs server response. - Verified calendar displays correct dates for November 2025. - Added visual inspection screenshot for calendar layout. - Created tests to ensure calendar fits within its container. - Checked for correct styling of available and blocked dates. - Debugged login form behavior and cookie handling. - Added tests for forced browser refresh and cache verification. - Conducted visual tests to compare actual calendar layout with expected. - Enhanced logging for better traceability during test execution.
26 lines
605 B
JavaScript
26 lines
605 B
JavaScript
import mysql from 'mysql2/promise';
|
|
import dotenv from 'dotenv';
|
|
|
|
dotenv.config();
|
|
|
|
const connection = await mysql.createConnection({
|
|
host: process.env.DB_HOST,
|
|
user: process.env.DB_USER,
|
|
password: process.env.DB_PASSWORD,
|
|
database: process.env.DB_NAME
|
|
});
|
|
|
|
console.log('=== Checking menus table structure ===\n');
|
|
|
|
try {
|
|
const [columns] = await connection.execute('DESCRIBE menus');
|
|
console.log('Current columns:');
|
|
columns.forEach(col => {
|
|
console.log(` - ${col.Field} (${col.Type})`);
|
|
});
|
|
} catch (error) {
|
|
console.error('Error:', error);
|
|
} finally {
|
|
await connection.end();
|
|
}
|