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:
SnapOtter
2026-06-28 18:57:53 +08:00
committed by GitHub
parent 88af8d46fb
commit 63a03d26f2
421 changed files with 17308 additions and 2540 deletions
+17 -12
View File
@@ -58,12 +58,9 @@ test.describe("State bleed between tools", () => {
await page.getByTestId("rotate-submit").click();
await waitForProcessing(page);
await expect(
page
.getByRole("button", { name: /^download$/i })
.or(page.getByRole("link", { name: /download/i }))
.first(),
).toBeVisible({ timeout: 15_000 });
await expect(page.locator("[data-download-button]").first()).toBeVisible({
timeout: 15_000,
});
// Navigate to resize
await page.goto("/image/resize");
@@ -81,6 +78,8 @@ test.describe("State bleed between tools", () => {
// Process an image in compress
await page.goto("/image/compress");
await uploadTestImage(page);
// Compress defaults to Target Size mode (needs a value); switch to Quality.
await page.getByRole("button", { name: "Quality" }).click();
await page.getByRole("button", { name: "Compress" }).click();
await waitForProcessing(page);
@@ -167,8 +166,8 @@ test.describe("State bleed between tools", () => {
await expect(thumbnails).toHaveCount(0);
});
// ── Sidebar navigation (not just goto) ───────────────────────────────
test("sidebar navigation clears processed state", async ({ loggedInPage: page }) => {
// ── Top-nav navigation (not just goto) ───────────────────────────────
test("top-nav navigation clears processed state", async ({ loggedInPage: page }) => {
// Process an image in resize
await page.goto("/image/resize");
await uploadTestImage(page);
@@ -181,13 +180,17 @@ test.describe("State bleed between tools", () => {
timeout: 15_000,
});
// Navigate home via sidebar
await page.locator("aside").getByText("Tools").click();
// 2.0 removed the sidebar. Navigate home via the top-nav "Tools" breadcrumb link.
await page.locator("header").getByRole("link", { name: "Tools", exact: true }).click();
await expect(page).toHaveURL("/");
// Home page should show clean dropzone, not stale resize results
await expect(page.getByText("Upload from computer")).toBeVisible({ timeout: 5_000 });
// Home is now a tool catalog (search + modality tabs), not a dropzone. The
// catalog should render and no stale resize results should bleed through.
await expect(page.locator("[data-search-input]")).toBeVisible({ timeout: 5_000 });
await expect(page.getByRole("link", { name: /download/i })).not.toBeVisible();
const blobImages = page.locator("img[src^='blob:']");
await expect(blobImages).toHaveCount(0);
});
// ── Rapid navigation: process -> navigate -> navigate again ──────────
@@ -226,6 +229,8 @@ test.describe("State bleed between tools", () => {
// Process in compress (shows size comparison after processing)
await page.goto("/image/compress");
await uploadTestImage(page);
// Compress defaults to Target Size mode (needs a value); switch to Quality.
await page.getByRole("button", { name: "Quality" }).click();
await page.getByRole("button", { name: "Compress" }).click();
await waitForProcessing(page);