feat: upload source by ctrl+v and dropzone

This commit is contained in:
2026-10-04 22:30:21 +05:00
parent 91150a14bf
commit 864f9cdc9f
10 changed files with 137 additions and 19 deletions
+10
View File
@@ -18,6 +18,7 @@ import {
sourceImage,
trackErrors,
uploadImage,
uploadViaDrop,
useEnglish,
} from "./helpers/page";
@@ -81,6 +82,15 @@ test("crop-png starts with the full source area", async ({ page }) => {
expectNoErrors(sink);
});
test("flip-png: upload via drag-and-drop on the dropzone", async ({ page }) => {
const sink = trackErrors(page);
await openTool(page, "flip-png");
await uploadViaDrop(page, opaquePng);
await expect(resultImage(page)).toBeVisible();
await expectNoErrorAlert(page);
expectNoErrors(sink);
});
test("flip-png: full flow - upload, result, download", async ({ page }) => {
const sink = trackErrors(page);
await openTool(page, "flip-png");