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:
@@ -36,6 +36,9 @@ test.describe("GUI Utility Tools", () => {
|
||||
|
||||
test("shows second image upload button with correct label", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/image/compare");
|
||||
// The second-image control lives in the settings panel, which renders
|
||||
// after the first image is uploaded.
|
||||
await uploadTestImage(page);
|
||||
|
||||
await expect(page.getByText("Second Image").first()).toBeVisible();
|
||||
await expect(page.getByText("Choose second image")).toBeVisible();
|
||||
@@ -44,16 +47,17 @@ test.describe("GUI Utility Tools", () => {
|
||||
test("submit disabled without both images", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/image/compare");
|
||||
|
||||
const submitBtn = page.getByTestId("compare-submit");
|
||||
await expect(submitBtn).toBeDisabled();
|
||||
// Pre-upload the settings panel (and its submit) is not rendered yet.
|
||||
await expect(page.getByTestId("compare-submit")).toHaveCount(0);
|
||||
|
||||
await uploadTestImage(page);
|
||||
// Still disabled -- no second image
|
||||
await expect(submitBtn).toBeDisabled();
|
||||
// Still disabled -- one image, no second image yet.
|
||||
await expect(page.getByTestId("compare-submit")).toBeDisabled();
|
||||
});
|
||||
|
||||
test("submit button text says Compare", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/image/compare");
|
||||
await uploadTestImage(page);
|
||||
|
||||
await expect(page.getByTestId("compare-submit")).toHaveText(/Compare/);
|
||||
});
|
||||
@@ -364,7 +368,7 @@ test.describe("GUI Utility Tools", () => {
|
||||
await uploadTestImage(page);
|
||||
|
||||
await expect(page.locator("#bulk-rename-pattern")).toBeVisible();
|
||||
await expect(page.locator("#bulk-rename-pattern")).toHaveValue("image-{{index}}");
|
||||
await expect(page.locator("#bulk-rename-pattern")).toHaveValue("file-{{index}}");
|
||||
});
|
||||
|
||||
test("shows pattern variables help text", async ({ loggedInPage: page }) => {
|
||||
|
||||
Reference in New Issue
Block a user