feat: Cierre section (07, dark) — closing quote + contact links
This commit is contained in:
1 parent
532ce55558
commit
8947a11e70
3 files changed
+56
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { Cierre } from '../Cierre';
|
||||
|
||||
describe('<Cierre />', () => {
|
||||
it('renders the closing quote', () => {
|
||||
render(<Cierre />);
|
||||
expect(screen.getByText(/Devuélvele claridad/i)).toBeInTheDocument();
|
||||
});
|
||||
it('renders 3 contact links with correct hrefs', () => {
|
||||
render(<Cierre />);
|
||||
const wa = screen.getByRole('link', { name: /whatsapp/i });
|
||||
const mail = screen.getByRole('link', { name: /email/i });
|
||||
const li = screen.getByRole('link', { name: /linkedin/i });
|
||||
expect(wa.getAttribute('href')).toMatch(/^https:\/\/wa\.me\//);
|
||||
expect(mail.getAttribute('href')).toMatch(/^mailto:/);
|
||||
expect(li.getAttribute('href')).toMatch(/^https:\/\/(www\.)?linkedin\./);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user