feat(servicos): topo, entregáveis e cases por serviço, assunto próprio no WhatsApp e títulos curtos
This commit is contained in:
1 parent
cf360041bd
commit
2fd8b063d9
33 files changed
+1578
-300
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { render, screen, within } from "@testing-library/react";
|
||||
import { setNavigation } from "@/__mocks__/next/navigation";
|
||||
import { caseStudies, type ServiceOffer } from "@/lib/site-content";
|
||||
import { ServiceOfferCards } from "./ServiceOfferCards";
|
||||
|
||||
@@ -7,15 +8,19 @@ import { ServiceOfferCards } from "./ServiceOfferCards";
|
||||
* com cases | sem cases (a lista de links some); com observação | sem observação.
|
||||
*/
|
||||
|
||||
jest.mock("next/navigation", () => ({ usePathname: () => "/servicos" }));
|
||||
beforeEach(() => {
|
||||
setNavigation({ pathname: "/servicos" });
|
||||
});
|
||||
|
||||
function offer(overrides: Partial<ServiceOffer["proof"]>): ServiceOffer {
|
||||
return {
|
||||
id: "site",
|
||||
name: "Oferta de teste",
|
||||
whatsappSubject: "uma oferta de teste",
|
||||
summary: "Resumo.",
|
||||
href: "/servicos/criacao-de-sites",
|
||||
deliverables: ["Um", "Dois", "Três"],
|
||||
firstStep: "Primeira conversa. Depois, escopo e proposta por escrito.",
|
||||
proof: { label: "Veja funcionando", caseIds: [], ...overrides },
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user