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>
23 lines
932 B
TypeScript
23 lines
932 B
TypeScript
import { render, screen } from '@testing-library/react';
|
|
import { describe, it, expect } from 'vitest';
|
|
import { Footer } from '../Footer';
|
|
|
|
describe('<Footer />', () => {
|
|
it('renders the tagline and the legal line', () => {
|
|
render(<Footer />);
|
|
expect(screen.getByText('CLARIDAD · DIRECCIÓN · CRECIMIENTO')).toBeInTheDocument();
|
|
expect(screen.getByText(/© 2026 creeer/)).toBeInTheDocument();
|
|
});
|
|
it('does not introduce a second h1', () => {
|
|
render(<Footer />);
|
|
expect(screen.queryByRole('heading', { level: 1 })).toBeNull();
|
|
});
|
|
it('credits the stock photos per their CC BY-SA 4.0 licence', () => {
|
|
render(<Footer />);
|
|
expect(screen.getAllByText(/CC BY-SA 4\.0/)).toHaveLength(2);
|
|
expect(screen.getByText(/Golden Gate Bridge/)).toBeInTheDocument();
|
|
expect(screen.getByText(/Monte Nardi/)).toBeInTheDocument();
|
|
expect(screen.getAllByText(/modificada/).length).toBe(2);
|
|
});
|
|
});
|