Home mais curta (hero, vitrine de clientes, sobre, serviços, IA resumida, depoimentos e contato), faixa de clientes e telas reais no hero, sem números do GitHub. Barra de cookies fina, WhatsApp fixo no celular, formulário com e-mail opcional e alternativa por e-mail, página /ia, eventos de e-mail, redes e currículo e conversão do Ads opcional por variável. Rodapé em 3 colunas. Remove componentes órfãos (LighthouseMetrics, Skills, Experience, contagem do GitHub).
37 lines
913 B
TypeScript
37 lines
913 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: "Já começou com IA? Dá para partir daí.",
|
|
}),
|
|
).toBeInTheDocument();
|
|
expect(
|
|
screen.getByRole("link", { name: "Entender como funciona" }),
|
|
).toHaveAttribute("href", "/ia");
|
|
// os incidentes e a LGPD ficam só em /ia
|
|
expect(screen.queryByText(/Lovable|Replit|Base44|LGPD/)).toBeNull();
|
|
});
|