import React from 'react' import { describe, expect, it } from 'vitest' import { render, screen } from '@testing-library/react' import TestimonialSlider from './TestimonialSlider' describe('TestimonialSlider accessibility', () => { it('exposes only one logical testimonial set', () => { const testimonials = [ { name: 'Person A', quote: 'Zitat A', role: 'Rolle A' }, { name: 'Person B', quote: 'Zitat B', role: 'Rolle B' }, { name: 'Person C', quote: 'Zitat C', role: 'Rolle C' }, ] const { container } = render() expect(container.querySelectorAll('.testimonial-card:not([aria-hidden="true"])')).toHaveLength(3) expect(screen.getByRole('status').textContent).toContain('Testimonial 1 von 3') }) })