235f15e1e7
CRITICAL: - JwtMiddleware orden (antes de UseAuthentication) - JWT Secret en appsettings.json (no vacio) - Transbank MySQL connection string (User=root + placeholder) - package-lock generado + Dockerfile usa npm install - Tests E2E: selectores corregidos con name attributes - Tests: rut invalido reemplazado, casos sin auth - Contacto page: apunta a services-externos (no backend) - .env.example: credenciales reales -> placeholders HIGH: - extra_hosts agregado a services-externos en compose - Dockerfile frontend: npm ci -> npm install
13 lines
434 B
TypeScript
13 lines
434 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('pagina de leads muestra titulo', async ({ page }) => {
|
|
await page.goto('/leads');
|
|
await expect(page.locator('h3')).toContainText('Leads');
|
|
});
|
|
|
|
test('pagina nuevo lead tiene formulario', async ({ page }) => {
|
|
await page.goto('/leads/nuevo');
|
|
await expect(page.locator('form')).toBeVisible();
|
|
await expect(page.locator('button:has-text("Guardar")')).toBeVisible();
|
|
});
|