feat: publish privacy and consent links

This commit is contained in:
Evandro Fonseca Junior committed 2026-09-04 20:04:27 -03:00
1 parent a9a35cf936
commit f83c5e1ada
9 files changed
+254 -1

No files matched your search

+6
View File
@@ -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" }),
);