diff --git a/app/cases/[slug]/page.test.tsx b/app/cases/[slug]/page.test.tsx index 02f0285..be3a76f 100644 --- a/app/cases/[slug]/page.test.tsx +++ b/app/cases/[slug]/page.test.tsx @@ -209,7 +209,7 @@ it("renders the authorized detailed case in order with traceable sources", async }); it("keeps the fallback concise and links its declared services", async () => { - const caseStudy = getCase("gcc-installer"); + const caseStudy = getCase("sc-plus"); expect(caseStudy.detail).toBeUndefined(); const ui = await CasePage({ params: Promise.resolve({ slug: caseStudy.id }), @@ -222,7 +222,9 @@ it("keeps the fallback concise and links its declared services", async () => { for (const technology of caseStudy.stack) { expect(screen.getByText(technology)).toBeVisible(); } - expect(screen.queryByRole("link", { name: "Abrir demonstração" })).toBeNull(); + expect( + screen.getByRole("link", { name: "Abrir demonstração" }), + ).toHaveAttribute("href", caseStudy.demoUrl); expect(screen.getByRole("link", { name: "Ver código" })).toHaveAttribute( "href", caseStudy.githubUrl, diff --git a/app/cases/[slug]/page.tsx b/app/cases/[slug]/page.tsx index 5c6c558..b1a1a72 100644 --- a/app/cases/[slug]/page.tsx +++ b/app/cases/[slug]/page.tsx @@ -35,10 +35,11 @@ export async function generateMetadata({ const url = `${siteUrl}/cases/${caseStudy.id}`; return { - title: `${caseStudy.title} | Case de Engenharia de Software`, + title: `${caseStudy.title} | Case de Engenharia`, description: caseStudy.summary, alternates: { canonical: url }, openGraph: { + locale: "pt_BR", title: caseStudy.title, description: caseStudy.summary, url, @@ -109,6 +110,14 @@ export default async function CasePage({ params }: CasePageProps) {

{caseStudy.detail?.answer.text ?? caseStudy.summary}

+ {caseStudy.role ? ( +

+ + Minha participação: + {" "} + {caseStudy.role} +

+ ) : null} {!caseStudy.detail ? (

{caseStudy.impact} diff --git a/app/cases/page.tsx b/app/cases/page.tsx index 5948699..5fadb4a 100644 --- a/app/cases/page.tsx +++ b/app/cases/page.tsx @@ -18,6 +18,7 @@ export const metadata: Metadata = { canonical: pageUrl, }, openGraph: { + locale: "pt_BR", title: pageTitle, description: pageDescription, url: pageUrl, diff --git a/app/components/Footer.test.tsx b/app/components/Footer.test.tsx index 8c9e174..d42b1dc 100644 --- a/app/components/Footer.test.tsx +++ b/app/components/Footer.test.tsx @@ -2,12 +2,13 @@ import { render, screen } from "@testing-library/react"; import Footer from "./Footer"; describe("Footer contact and navigation", () => { - it("offers project contact and a direct mailto link", () => { + it("offers a direct mailto link without repeating the contact call to action", () => { render(