feat: publish privacy and consent links
This commit is contained in:
1 parent
a9a35cf936
commit
f83c5e1ada
9 files changed
+254
-1
No files matched your search
@@ -28,6 +28,10 @@ describe("Footer contact and navigation", () => {
|
||||
const servicesLink = screen.getByRole("link", { name: "Hub de serviços" });
|
||||
expect(servicesLink).toHaveAttribute("href", "/servicos");
|
||||
expect(servicesLink).not.toHaveAttribute("target", "_blank");
|
||||
expect(screen.getByRole("link", { name: "Privacidade" })).toHaveAttribute(
|
||||
"href",
|
||||
"/privacidade",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ const socialLinks: SocialLink[] = [
|
||||
const quickLinks = [
|
||||
{ label: "Hub de serviços", href: "/servicos" },
|
||||
{ label: "Cases", href: "/cases" },
|
||||
{ label: "Privacidade", href: "/privacidade" },
|
||||
{ label: "Consultoria Next.js", href: "/servicos/consultoria-nextjs" },
|
||||
{
|
||||
label: "Integração hardware + software",
|
||||
|
||||
@@ -61,6 +61,9 @@ describe("GoogleAnalytics consent", () => {
|
||||
expect(
|
||||
screen.queryByTestId("google-analytics-script"),
|
||||
).not.toBeInTheDocument();
|
||||
expect(
|
||||
screen.getByRole("link", { name: "Ler política de privacidade" }),
|
||||
).toHaveAttribute("href", "/privacidade");
|
||||
});
|
||||
|
||||
it("persists acceptance and enables analytics without advertising consent", async () => {
|
||||
@@ -187,6 +190,9 @@ describe("GoogleAnalytics consent", () => {
|
||||
name: "Preferências de analytics",
|
||||
});
|
||||
await user.click(preferencesButton);
|
||||
expect(
|
||||
screen.getByRole("link", { name: "Ler política de privacidade" }),
|
||||
).toHaveAttribute("href", "/privacidade");
|
||||
await user.click(
|
||||
screen.getByRole("button", { name: "Fechar preferências" }),
|
||||
);
|
||||
|
||||
@@ -198,6 +198,12 @@ function GoogleAnalyticsConsent() {
|
||||
Recusar analytics
|
||||
</button>
|
||||
</div>
|
||||
<a
|
||||
className="ds-link ds-link-accent mt-sp-3 inline-block"
|
||||
href="/privacidade"
|
||||
>
|
||||
Ler política de privacidade
|
||||
</a>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -270,6 +276,12 @@ function GoogleAnalyticsConsent() {
|
||||
Fechar preferências
|
||||
</button>
|
||||
</div>
|
||||
<a
|
||||
className="ds-link ds-link-accent mt-sp-3 inline-block"
|
||||
href="/privacidade"
|
||||
>
|
||||
Ler política de privacidade
|
||||
</a>
|
||||
</section>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user