feat: sticky Header with persistent contact CTA

This commit is contained in:
erikgh committed 2026-07-21 15:42:13 -06:00
1 parent 50f62bdf28
commit d8921bc0bc
4 files changed
+40

No files matched your search

@@ -0,0 +1,15 @@
import { render, screen } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import { Header } from '../Header';
describe('<Header />', () => {
it('renders the wordmark', () => {
const { container } = render(<Header />);
expect(container.textContent).toContain('creeer');
});
it('renders a persistent CTA linking to the contact section', () => {
render(<Header />);
const cta = screen.getByRole('link', { name: /Hablemos/i });
expect(cta).toHaveAttribute('href', '#contacto');
});
});