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
@@ -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" }),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user