Dos secciones nuevas tomadas del deck de la dueña, verbatim y sin reescribir: los 6 puntos de inflexión y los 4 dolores en primera persona. El resto de las secciones incorpora la capa gráfica: fondos de puntos, duotono sobre foto en Mecanismo y Cómo empezar, pantalla partida sí/no en Para quién, y pasos conectados con línea de progreso. Las fotos son CC BY-SA 4.0 y llevan crédito en el footer, como exige la licencia al haberlas modificado. Co-Authored-By: Claude Opus 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 from the dueña deck', () => {
|
|
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 de venta/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);
|
|
});
|
|
});
|