Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function Footer() {
<ul className="space-y-4 text-gray-500 dark:text-gray-400">
<li><a href="#" className="hover:text-emerald-500 dark:hover:text-emerald-400 transition-colors">Termos de Uso</a></li>
<li><a href="#" className="hover:text-emerald-500 dark:hover:text-emerald-400 transition-colors">Privacidade</a></li>
<li><a href="#" className="hover:text-emerald-500 dark:hover:text-emerald-400 transition-colors">Contato</a></li>
</ul>
</div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions frontend/tests/unit/components/Footer.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { Footer } from "../../../src/domains/marketing/presentation/components/Footer";

describe("Footer", () => {
it("não exibe o link inativo de Contato", () => {
render(<Footer />);

expect(screen.queryByRole("link", { name: "Contato" })).toBeNull();
});

it("mantém os demais links da seção Legal", () => {
render(<Footer />);

expect(screen.getByRole("link", { name: "Termos de Uso" })).toBeInTheDocument();
expect(screen.getByRole("link", { name: "Privacidade" })).toBeInTheDocument();
});
});
Loading