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:
@@ -238,14 +238,15 @@ test.describe("GUI Metadata Tools", () => {
|
||||
await expect(page.getByRole("link", { name: /download/i })).not.toBeVisible();
|
||||
});
|
||||
|
||||
test("submit disabled without file, enabled with file", async ({ loggedInPage: page }) => {
|
||||
test("submit absent without file, enabled with file", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/image/info");
|
||||
|
||||
const submitBtn = page.getByTestId("info-submit");
|
||||
await expect(submitBtn).toBeDisabled();
|
||||
// The settings panel (and its submit button) only mounts after a file is
|
||||
// added. Before upload the page shows just the dropzone.
|
||||
await expect(page.getByTestId("info-submit")).toHaveCount(0);
|
||||
|
||||
await uploadTestImage(page);
|
||||
await expect(submitBtn).toBeEnabled();
|
||||
await expect(page.getByTestId("info-submit")).toBeEnabled();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -264,7 +265,7 @@ test.describe("GUI Metadata Tools", () => {
|
||||
|
||||
await expect(page.getByTestId("strip-metadata-download")).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
await page.getByRole("button", { name: /undo/i }).click();
|
||||
await page.getByRole("button", { name: /adjust settings/i }).click();
|
||||
|
||||
await expect(page.getByTestId("strip-metadata-submit")).toBeVisible({ timeout: 5_000 });
|
||||
await expect(page.getByTestId("strip-metadata-download")).not.toBeVisible();
|
||||
@@ -283,7 +284,7 @@ test.describe("GUI Metadata Tools", () => {
|
||||
|
||||
await expect(page.getByTestId("edit-metadata-download")).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
await page.getByRole("button", { name: /undo/i }).click();
|
||||
await page.getByRole("button", { name: /adjust settings/i }).click();
|
||||
|
||||
await expect(page.getByTestId("edit-metadata-submit")).toBeVisible({ timeout: 5_000 });
|
||||
await expect(page.getByTestId("edit-metadata-download")).not.toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user