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