feat(estratega): marco line-art listo para el retrato real

This commit is contained in:
erikgh committed 2026-07-31 11:41:09 -06:00
1 parent 3cb2b1f78b
commit a2fa730b7b
3 files changed
+82 -9

No files matched your search

@@ -0,0 +1,20 @@
import { render, screen } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import { MarcoRetrato } from '../MarcoRetrato';
describe('<MarcoRetrato />', () => {
it('renders whatever portrait it is given', () => {
render(<MarcoRetrato><span>retrato</span></MarcoRetrato>);
expect(screen.getByText('retrato')).toBeInTheDocument();
});
it('keeps the frame decorative: the portrait carries the meaning', () => {
const { container } = render(<MarcoRetrato><span>retrato</span></MarcoRetrato>);
expect(container.querySelector('svg')).toHaveAttribute('aria-hidden', 'true');
});
it('draws the arc that will survive the real photograph landing', () => {
const { container } = render(<MarcoRetrato><span>retrato</span></MarcoRetrato>);
expect(container.querySelectorAll('circle').length).toBeGreaterThanOrEqual(1);
});
});