feat(andreknie.de): improve accessibility and initial loading
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import React from 'react'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { render } 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(<TestimonialSlider testimonials={testimonials} />)
|
||||
expect(container.querySelectorAll('.testimonial-card:not([aria-hidden="true"])')).toHaveLength(3)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user