import { render, screen } from '@testing-library/react'; import { describe, it, expect } from 'vitest'; import { Header } from '../Header'; describe('
', () => { it('renders the wordmark, linked to the top of the page', () => { render(
); const home = screen.getByRole('link', { name: /creeer/i }); expect(home).toHaveAttribute('href', '#top'); expect(home.querySelector('[data-accent="true"]')).not.toBeNull(); }); it('renders a persistent CTA linking to the contact section', () => { render(
); const cta = screen.getByRole('link', { name: /Hablemos/i }); expect(cta).toHaveAttribute('href', '#contacto'); }); });