Files
SnapOtter/tests/e2e/url-import.spec.ts
T
SnapOtterandGitHub 63a03d26f2 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.
2026-06-28 18:57:53 +08:00

26 lines
852 B
TypeScript

import { expect, test } from "./helpers";
test.describe("URL Image Import", () => {
test("inline URL input is visible on tool page", async ({ loggedInPage: page }) => {
await page.goto("/image/resize");
await expect(page.getByPlaceholder("Paste file URL...")).toBeVisible();
});
test("bulk import modal opens and closes", async ({ loggedInPage: page }) => {
await page.goto("/image/resize");
// Open the bulk import modal
await page.getByText("Import multiple URLs...").click();
// Assert the modal title is visible
await expect(page.getByText("Import from URLs")).toBeVisible();
// Close the modal via Cancel
await page.getByRole("button", { name: "Cancel" }).click();
// Assert the modal title is no longer visible
await expect(page.getByText("Import from URLs")).not.toBeVisible();
});
});