feat(header): progreso de lectura y compactado al bajar

This commit is contained in:
erikgh committed 2026-07-31 11:42:09 -06:00
1 parent a2fa730b7b
commit d447239542
4 files changed
+78 -4

No files matched your search

@@ -14,4 +14,15 @@ describe('<Header />', () => {
const cta = screen.getByRole('link', { name: /Hablemos/i });
expect(cta).toHaveAttribute('href', '#contacto');
});
it('shows reading progress', () => {
const { container } = render(<Header />);
expect(container.querySelector('.bg-dorado')).toBeInTheDocument();
});
it('starts roomy, before any scrolling has happened', () => {
const { container } = render(<Header />);
// The header compacts on scroll; at rest it must be in its tall state, or
// the wordmark would land already shrunken on first paint.
expect(container.querySelector('header')?.className).toContain('py-3');
});
});