Files
portifolio-evandrodevbr/app/components/EngineeringWithAI.test.tsx
T
Evandro Fonseca Junior 10f170abf4 feat(home): posicionamento com prova, menu sem recarregar e WhatsApp em todo o site
H1 'Sites e sistemas que trazem pedidos pelo WhatsApp e tiram sua operação da planilha.'; HeroWork maior com a SEV; menu Cases, Serviços, Como trabalho, Sobre e IA com next/link e pré-carregamento no hover; menu do celular em tela cheia; WhatsApp flutuante e no rodapé com a mensagem da rota; rodapé em todas as páginas; FAQ da home; /ia como oferta de revisão de app feito com IA; formulário com noscript, validação do mailto e plano B do pop-up; cartões sem foco indevido; sem a fonte Monument.
2026-10-14 14:15:25 -03:00

39 lines
1018 B
TypeScript

import { render, screen } from "@testing-library/react";
import type { ReactNode } from "react";
import EngineeringWithAI from "./EngineeringWithAI";
jest.mock("./Section", () => ({
Section: ({
children,
title,
description,
}: {
children: ReactNode;
title: string;
description?: string;
}) => (
<section>
<h2>{title}</h2>
<p>{description}</p>
{children}
</section>
),
}));
it("is the short home version and points to /ia for the full content", () => {
render(<EngineeringWithAI />);
expect(
screen.getByRole("heading", {
name: "Fez um app com IA? Eu reviso.",
}),
).toBeInTheDocument();
expect(
screen.getByRole("link", { name: "Ver a revisão de app feito com IA" }),
).toHaveAttribute("href", "/ia");
// a oferta não promete prazo nem preço
expect(screen.queryByText(/R\$|prazo de|dias/)).toBeNull();
// os incidentes e a LGPD ficam só em /ia
expect(screen.queryByText(/Lovable|Replit|Base44|LGPD/)).toBeNull();
});