feat: Cómo empezar section (07) — 3-step on-ramp to WhatsApp

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
erikghandClaude Opus 4.8 committed 2026-07-21 15:45:30 -06:00
1 parent d8921bc0bc
commit 7d27c91cf7
4 files changed
+68

No files matched your search

@@ -0,0 +1,18 @@
import { render, screen } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import { ComoEmpezar } from '../ComoEmpezar';
describe('<ComoEmpezar />', () => {
it('renders the on-ramp steps', () => {
render(<ComoEmpezar />);
expect(screen.getByText('Escríbeme')).toBeInTheDocument();
expect(screen.getByText('Sesión de diagnóstico')).toBeInTheDocument();
});
it('links the CTA to WhatsApp with a prefilled message', () => {
render(<ComoEmpezar />);
const cta = screen.getByRole('link', { name: /Agenda tu sesión de diagnóstico/i });
const href = cta.getAttribute('href') ?? '';
expect(href).toMatch(/^https:\/\/wa\.me\//);
expect(href).toContain('text=');
});
});