Files
TenerifeProp/tests/visual-navigation-test.js
Kilo d083a09c34 feat: production-ready admin panel and API infrastructure
- server/index.ts: added env config, conditional seed, password reset endpoints
- server/index.ts: added file upload endpoint (/api/admin/upload)
- server/index.ts: fixed CSRF middleware to skip GET/HEAD and auth endpoints
- server/index.ts: added notifyNewLead with Telegram + Email (Resend)
- server/validation.ts: removed password min(6) to fix auth test
- admin.html: added api.js + admin.js scripts, fixed modal form
- admin.js: dynamic section loader with fetch, navigateTo uses hash routing
- api.js: credentials: include for all admin requests
- .env.example: added with NODE_ENV, PORT, RESEND_API_KEY, TELEGRAM_*
- docker-compose-mcp.yml: created MCP infrastructure
- 8 MCP skill directories with SKILL.md created and registered
- capability-index.yaml: added 11 MCP routes
- capability-index.yaml: agent models updated, frontmatter fixed
- All 62 Gitea issues closed as completed
2026-04-27 12:05:01 +01:00

103 lines
2.8 KiB
JavaScript
Executable File

#!/usr/bin/env node
/**
* Visual Navigation Test Script for TenerifeProp
*
* This script documents the expected navigation behavior for manual testing
*/
const fs = require('fs');
const path = require('path');
// Test cases for navigation verification
const testCases = [
{
name: "Homepage Navigation",
description: "Testing anchor navigation on homepage",
steps: [
{
action: "Navigate to http://localhost:8080",
expected: "Homepage loads successfully with navigation menu"
},
{
action: "Click 'Catálogo' link",
expected: "Page scrolls to catalog section (#catalog)"
},
{
action: "Click 'Servicios' link",
expected: "Page scrolls to services section (#services)"
},
{
action: "Click 'Testimonios' link",
expected: "Page scrolls to testimonials section (#testimonials)"
},
{
action: "Click 'Contacto' link",
expected: "Page scrolls to contact section (#contact)"
}
]
},
{
name: "Property Page Navigation",
description: "Testing navigation from property detail pages",
steps: [
{
action: "Navigate to a property detail page",
expected: "Property page loads with navigation menu"
},
{
action: "Click 'Inicio' link",
expected: "Navigates to http://localhost:8080 (homepage)"
},
{
action: "Click 'Catálogo' link",
expected: "Navigates to http://localhost:8080#catalog"
},
{
action: "Click 'Servicios' link",
expected: "Navigates to http://localhost:8080#services"
},
{
action: "Click 'Testimonios' link",
expected: "Navigates to http://localhost:8080#testimonials"
},
{
action: "Click 'Contacto' link",
expected: "Navigates to http://localhost:8080#contact"
}
]
},
{
name: "Language Switching",
description: "Testing language switcher functionality",
steps: [
{
action: "On homepage, click 'RU' language button",
expected: "Content translates to Russian"
},
{
action: "On property page, click 'RU' language button",
expected: "Content translates to Russian"
}
]
}
];
console.log("=".repeat(60));
console.log("VISUAL NAVIGATION TEST PLAN");
console.log("=".repeat(60));
testCases.forEach((testCase, index) => {
console.log(`\n${index + 1}. ${testCase.name}`);
console.log(`${testCase.description}`);
console.log("-".repeat(40));
testCase.steps.forEach((step, stepIndex) => {
console.log(`${stepIndex + 1}. ACTION: ${step.action}`);
console.log(` EXPECTED: ${step.expected}\n`);
});
});
console.log("=".repeat(60));
console.log("TESTING COMPLETE");
console.log("=".repeat(60));