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.
39 lines
1018 B
TypeScript
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();
|
|
});
|