feat(cases): adiciona o case Julia Beauty com vídeo de rolagem
CI / audit (push) Failing after 5m27s
CI / e2e (push) Failing after 11m23s
CI / verify (push) Successful in 11m31s
CI / deploy (push) Successful in 1m19s

This commit is contained in:
evandro committed 2026-10-24 04:50:58 -03:00
1 parent 594daecd2b
commit bcdf0099c5
26 files changed
+159 -42

No files matched your search

@@ -132,7 +132,7 @@ describe("opengraph-image Image", () => {
expect(all.map(({ id }) => id)).toEqual(caseStudies.map(({ id }) => id));
expect(
all.filter(({ contentType }) => contentType === "image/jpeg"),
).toHaveLength(5);
).toHaveLength(6);
});
it("path: unknown slug -> notFound() and no image", async () => {
+12 -4
View File
@@ -20,6 +20,7 @@ const clientCaseIds = [
"lavacao-047",
"sc-plus",
"as-servicos",
"julia-beauty",
];
const labCaseIds = [
"nutriscan",
@@ -86,15 +87,21 @@ function expectContactAndNoDeadLinks(caseStudy: { id: string; title: string }) {
}
}
it("exposes the eight public cases, the two new client cases among them", async () => {
it("exposes the nine public cases, the new client cases among them", async () => {
const staticSlugs = generateStaticParams().map(({ slug }) => slug);
expect(staticSlugs).toHaveLength(8);
expect(new Set(staticSlugs).size).toBe(8);
expect(staticSlugs).toHaveLength(9);
expect(new Set(staticSlugs).size).toBe(9);
expect([...staticSlugs].sort()).toEqual([...publicCaseIds].sort());
expect(staticSlugs).toContain("sev-modaintima");
expect(staticSlugs).toContain("lavacao-047");
expect(staticSlugs).toContain("julia-beauty");
for (const id of ["sev-modaintima", "lavacao-047", "as-servicos"]) {
for (const id of [
"sev-modaintima",
"lavacao-047",
"as-servicos",
"julia-beauty",
]) {
const caseStudy = getCase(id);
const url = `${siteUrl}/cases/${caseStudy.id}`;
const { metaTitle: title, metaDescription: description } = caseStudy;
@@ -680,6 +687,7 @@ it("lists client cases with a cover first, then the laboratory, and keeps the sc
"lavacao-047",
"sc-plus",
"as-servicos",
"julia-beauty",
]);
const clientLinks = listedIds.map((id) => {
const card = container
+2 -1
View File
@@ -77,7 +77,7 @@ describe("CasesPage: cases de cliente", () => {
).toBeNull();
});
it("path: contact -> 'Falar sobre meu projeto', and the list of clients follows the showcase: the SEV first, then Lavação 047, SC Plus and AS Serviços", () => {
it("path: contact -> 'Falar sobre meu projeto', and the list of clients follows the showcase: the SEV first, then Lavação 047, SC Plus, AS Serviços and Julia Beauty", () => {
const { container } = render(<CasesPage />);
expect(
@@ -94,6 +94,7 @@ describe("CasesPage: cases de cliente", () => {
"Lavação 047",
"SC Plus Aquicultura",
"AS Serviços",
"Julia Beauty",
]);
// um botão de contato só na página: o do fecho
expect(