mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: pipeline templates, analytics opt-out, 83 conversion presets, positioning + e2e modernization
Lands five integrated branches: pipeline templates (#355), analytics opt-out (#354), 83 conversion presets bringing the catalog to 240 tools (#356), self-hosted positioning (#353), and e2e modernization (#351). Integration fixes: aligned stale web analytics tests with the opt-out/allow-list model, closed 3 CodeQL incomplete-sanitization alerts in the i18n generator, resolved settings/index/docs/format-matrix conflicts, and corrected tool counts to 240.
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
import { expect, test } from "./helpers";
|
||||
|
||||
// The /privacy page describes the opt-out analytics model (PR #336 removed the
|
||||
// old consent/opt-in flow). These assertions track the live page copy; there is
|
||||
// no consent page or banner to assert anymore.
|
||||
|
||||
test.describe("Privacy Policy Page", () => {
|
||||
test("renders at /privacy", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/privacy");
|
||||
await expect(page.getByText(/privacy/i).first()).toBeVisible({ timeout: 5_000 });
|
||||
await expect(page.getByRole("heading", { name: "Privacy Policy", level: 1 })).toBeVisible({
|
||||
timeout: 5_000,
|
||||
});
|
||||
});
|
||||
|
||||
test("mentions PostHog as analytics provider", async ({ loggedInPage: page }) => {
|
||||
@@ -18,22 +24,26 @@ test.describe("Privacy Policy Page", () => {
|
||||
|
||||
test("describes local processing", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/privacy");
|
||||
await expect(page.getByText(/processed locally|locally on your server/i)).toBeVisible({
|
||||
await expect(page.getByRole("heading", { name: "Local Processing" })).toBeVisible({
|
||||
timeout: 5_000,
|
||||
});
|
||||
await expect(page.getByText(/processing happens entirely on the server/i)).toBeVisible({
|
||||
timeout: 5_000,
|
||||
});
|
||||
});
|
||||
|
||||
test("describes user choice for analytics", async ({ loggedInPage: page }) => {
|
||||
test("frames analytics as opt-out, not opt-in/consent", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/privacy");
|
||||
await expect(page.getByText(/opt.in|your choice|consent|choose/i)).toBeVisible({
|
||||
timeout: 5_000,
|
||||
});
|
||||
// Analytics is on by default and can be turned off (the opt-out model).
|
||||
await expect(page.getByRole("heading", { name: "Analytics" })).toBeVisible({ timeout: 5_000 });
|
||||
await expect(page.getByText(/can be disabled/i)).toBeVisible({ timeout: 5_000 });
|
||||
// No consent / opt-in wording should survive.
|
||||
await expect(page.getByText(/opt.?in|consent|i agree|accept analytics/i)).toHaveCount(0);
|
||||
});
|
||||
|
||||
test("no auth required to access privacy page", async ({ page }) => {
|
||||
// Use a fresh browser with no stored auth
|
||||
await page.goto("/privacy");
|
||||
// Should NOT redirect to login
|
||||
// Should NOT redirect to login.
|
||||
await page.waitForTimeout(2000);
|
||||
expect(page.url()).toContain("/privacy");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user