Primitivas y contenido del rediseño (escala tipográfica, Revelar, MarcaSeccion, Seccion, Antetitulo, SimboloMarca, Resplandor, ClaridadHero, sección Proceso de ocho etapas, lib/content.ts reestructurado en seis secciones con alias para las viejas). Mecanismo y FormaTrabajar se retiran. Encima, lo de esta sesión: - recorrido: creeer vuelve a responder cada situación en vez de repetirla (el alias apuntaba respuesta a situacion); respuestas en plural. Créditos de las seis fotos de México. - contacto: WhatsApp, email (con mailto:) y LinkedIn reales; iconos de las redes en el cierre y el footer (IconoRed, trazos de Simple Icons, CC0). - enlaces: lo externo abre en otra pestaña con noopener y aviso para lectores de pantalla (lib/enlaces.ts); mailto y anclas se quedan. - Proceso: las ocho tarjetas no aparecían nunca en móvil (amount 0.3 sobre una lista de ~3000px); ahora cada una se revela sola. El ≡ de la 08 ya no tapa un entregable, título equilibrado, etiqueta a 12px, sin elevar al hover lo que no es clicable. - Disciplinas: la frase «No son la promesa — son los medios» gana peso y se agrupa con título e ilustración; sin cortes huérfanos en móvil. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
1.4 KiB
TypeScript
30 lines
1.4 KiB
TypeScript
import { render, screen } from '@testing-library/react';
|
|
import { describe, it, expect } from 'vitest';
|
|
import { ParaQuien } from '../ParaQuien';
|
|
|
|
describe('<ParaQuien />', () => {
|
|
it('renders the section title', () => {
|
|
render(<ParaQuien />);
|
|
expect(screen.getByText(/punto de inflexión/i)).toBeInTheDocument();
|
|
});
|
|
it('renders the qualifying criteria', () => {
|
|
render(<ParaQuien />);
|
|
expect(screen.getByText(/tienes tracción/i)).toBeInTheDocument();
|
|
expect(screen.getByText(/trabajar más ya no rinde/i)).toBeInTheDocument();
|
|
expect(screen.getByText(/necesitas claridad/i)).toBeInTheDocument();
|
|
expect(screen.getByText(/sin perder tu esencia/i)).toBeInTheDocument();
|
|
});
|
|
it('renders the disqualifying criteria', () => {
|
|
render(<ParaQuien />);
|
|
expect(screen.getByText(/Esto no es para ti si/i)).toBeInTheDocument();
|
|
expect(screen.getByText(/fase inicial o sin tracción/i)).toBeInTheDocument();
|
|
expect(screen.getByText(/solución rápida, no un cambio de fondo/i)).toBeInTheDocument();
|
|
expect(screen.getByText(/un curso, no una transformación/i)).toBeInTheDocument();
|
|
expect(screen.getByText(/crisis de supervivencia/i)).toBeInTheDocument();
|
|
});
|
|
it('keeps the disqualifiers impersonal, so they read as a profile and not an accusation', () => {
|
|
render(<ParaQuien />);
|
|
expect(screen.getByText(/fase inicial o sin tracción/i).textContent).not.toMatch(/\btú\b|\btu\b/i);
|
|
});
|
|
});
|