From 583d1a29cd3acc81c1f0771c26604c39c0304fcb Mon Sep 17 00:00:00 2001 From: sheeeuWu Date: Sun, 7 Jun 2026 22:43:34 +0530 Subject: [PATCH] test(Footer-accessibility): verify Accessibility Standards & Screen Reader Aria Compliance (Variation 4) --- app/components/Footer.accessibility.test.tsx | 80 ++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 app/components/Footer.accessibility.test.tsx diff --git a/app/components/Footer.accessibility.test.tsx b/app/components/Footer.accessibility.test.tsx new file mode 100644 index 000000000..e8856bed7 --- /dev/null +++ b/app/components/Footer.accessibility.test.tsx @@ -0,0 +1,80 @@ +import { render, screen } from '@testing-library/react'; +import '@testing-library/jest-dom/vitest'; +import { describe, it, expect, vi } from 'vitest'; +import { Footer } from './Footer'; + +vi.mock('next/link', () => ({ + default: ({ + href, + children, + className, + 'aria-label': ariaLabel, + }: { + href: string; + children: React.ReactNode; + className?: string; + 'aria-label'?: string; + }) => ( + + {children} + + ), +})); + +describe('Footer — Accessibility & Screen Reader Compliance', () => { + it('renders footer landmark with correct heading hierarchy', () => { + render(