feat(header): progreso de lectura y compactado al bajar
This commit is contained in:
1 parent
a2fa730b7b
commit
d447239542
4 files changed
+78
-4
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { render } from '@testing-library/react';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { ProgresoLectura } from '../ProgresoLectura';
|
||||
|
||||
describe('<ProgresoLectura />', () => {
|
||||
it('is decorative: hidden from assistive tech', () => {
|
||||
const { container } = render(<ProgresoLectura />);
|
||||
expect(container.firstElementChild).toHaveAttribute('aria-hidden', 'true');
|
||||
});
|
||||
|
||||
it('renders as a gold rule anchored to the bottom edge', () => {
|
||||
const { container } = render(<ProgresoLectura />);
|
||||
const cls = container.firstElementChild?.className ?? '';
|
||||
expect(cls).toContain('bg-dorado');
|
||||
expect(cls).toContain('absolute');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user