From 3d3d5b2f9abf897a90e6ab383faec1e9c9f7195c Mon Sep 17 00:00:00 2001 From: erikgh Date: Fri, 31 Jul 2026 16:03:22 -0600 Subject: [PATCH] =?UTF-8?q?test(hero):=20la=20prueba=20de=20la=20met=C3=A1?= =?UTF-8?q?fora=20ya=20no=20pasa=20con=20cualquier=20svg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sólo comprobaba que hubiera algún svg, así que seguía en verde aunque SecuenciaClaridad desapareciera del hero: los campos de puntos bastaban. Ahora exige las líneas de la secuencia (18, y ninguna viene de otra parte — FondoPuntos dibuja círculos) y que ninguna lleve data-resolucion: el hero plantea la tensión, resolverla es cosa de FraseAncla. Co-Authored-By: Claude Opus 5 --- components/sections/__tests__/Hero.test.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/sections/__tests__/Hero.test.tsx b/components/sections/__tests__/Hero.test.tsx index d203f84..271b254 100644 --- a/components/sections/__tests__/Hero.test.tsx +++ b/components/sections/__tests__/Hero.test.tsx @@ -33,8 +33,13 @@ describe('', () => { expect(container.textContent).not.toMatch(/Trabajo más y gano casi lo mismo/i); }); - it('carries the brand metaphor as its visual anchor', () => { + it('poses the brand metaphor without resolving it', () => { const { container } = render(); - expect(container.querySelectorAll('svg').length).toBeGreaterThan(0); + // SecuenciaClaridad is the only thing here drawn from ; the dot + // fields are circles. variant="hero" plays dispersion and convergence + // only — the ≡ resolution is FraseAncla's payoff, and a hero that + // resolved would spend the beat before the copy earns it. + expect(container.querySelectorAll('line').length).toBeGreaterThan(10); + expect(container.querySelectorAll('[data-resolucion]')).toHaveLength(0); }); });