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>
25 lines
1.1 KiB
TypeScript
25 lines
1.1 KiB
TypeScript
import { render, screen } from '@testing-library/react';
|
|
import { describe, it, expect } from 'vitest';
|
|
import { PuntosInflexion } from '../PuntosInflexion';
|
|
|
|
describe('<PuntosInflexion />', () => {
|
|
it('renders the section title', () => {
|
|
render(<PuntosInflexion />);
|
|
expect(screen.getByText(/llegan a un punto de inflexión/i)).toBeInTheDocument();
|
|
});
|
|
it('renders the six inflection points from the dueña deck', () => {
|
|
render(<PuntosInflexion />);
|
|
// Each point renders twice in the markup — once in the mobile carousel,
|
|
// once in the desktop grid — with CSS `hidden`/`md:` toggling which one
|
|
// is actually visible at a given breakpoint.
|
|
for (const name of ['Crecer', 'Consolidarse', 'Recuperar rentabilidad', 'Simplificar', 'Expandirse', 'Replantear el portafolio']) {
|
|
expect(screen.getAllByText(name).length).toBeGreaterThanOrEqual(1);
|
|
}
|
|
expect(screen.getAllByRole('listitem')).toHaveLength(6);
|
|
});
|
|
it('does NOT introduce scarcity', () => {
|
|
const { container } = render(<PuntosInflexion />);
|
|
expect(container.textContent).not.toMatch(/cupos|cohorte|generación fundadora/i);
|
|
});
|
|
});
|