import { render } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import { IlustracionConvergencia } from '../IlustracionConvergencia';
describe('', () => {
it('is decorative: hidden from assistive tech', () => {
const { container } = render();
const svg = container.querySelector('svg');
expect(svg).toHaveAttribute('aria-hidden', 'true');
expect(svg).toHaveAttribute('focusable', 'false');
});
it('draws one strand per discipline plus the strategy they serve', () => {
const { container } = render();
expect(container.querySelectorAll('path')).toHaveLength(4);
});
it('keeps every stroke within the shared line-art scale', () => {
const { container } = render();
const anchos = Array.from(container.querySelectorAll('path')).map((p) => p.getAttribute('stroke-width'));
expect(anchos.length).toBeGreaterThan(0);
anchos.forEach((a) => expect(['1.5', '2', '3']).toContain(a));
});
});