import { render } from "@testing-library/react"; import fc from "fast-check"; import Footer from "./Footer"; describe("Property 2: Social Links Open in New Tab", () => { it('should have target="_blank" and rel="noopener noreferrer" for all social links', () => { /** * **Validates: Requirements 2.7** * * Property: For any social media link in the Footer component, it should have * target="_blank" and rel="noopener noreferrer" attributes to open in a new tab * securely. This ensures consistent behavior across all social links and prevents * security vulnerabilities (tabnabbing). */ fc.assert( fc.property( fc.constant(null), // No random input needed, testing static component () => { const { container } = render(