mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
feat: upload source by ctrl+v and dropzone
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user