Skip to content

Commit 69c4f51

Browse files
Jeremias Santosclaude
authored andcommitted
fix(PAV-98): remove link inativo de Contato do rodapé
O link "Contato" na seção Legal do rodapé apontava para href="#" (nenhum destino real). Como não há página/seção de Contato, o link é removido em vez de criado. Adiciona teste do Footer cobrindo a remoção e a permanência dos demais links da seção Legal. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 08d0c85 commit 69c4f51

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

frontend/src/domains/marketing/presentation/components/Footer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export function Footer() {
3838
<ul className="space-y-4 text-gray-500 dark:text-gray-400">
3939
<li><a href="#" className="hover:text-emerald-500 dark:hover:text-emerald-400 transition-colors">Termos de Uso</a></li>
4040
<li><a href="#" className="hover:text-emerald-500 dark:hover:text-emerald-400 transition-colors">Privacidade</a></li>
41-
<li><a href="#" className="hover:text-emerald-500 dark:hover:text-emerald-400 transition-colors">Contato</a></li>
4241
</ul>
4342
</div>
4443
</div>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { render, screen } from "@testing-library/react";
2+
import { describe, expect, it } from "vitest";
3+
import { Footer } from "../../../src/domains/marketing/presentation/components/Footer";
4+
5+
describe("Footer", () => {
6+
it("não exibe o link inativo de Contato", () => {
7+
render(<Footer />);
8+
9+
expect(screen.queryByRole("link", { name: "Contato" })).toBeNull();
10+
});
11+
12+
it("mantém os demais links da seção Legal", () => {
13+
render(<Footer />);
14+
15+
expect(screen.getByRole("link", { name: "Termos de Uso" })).toBeInTheDocument();
16+
expect(screen.getByRole("link", { name: "Privacidade" })).toBeInTheDocument();
17+
});
18+
});

0 commit comments

Comments
 (0)