mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: add output filename suffixes, CPU fallback for GPU packages, and fix e2e tests
- Add tool-specific suffix to output filenames so downloads don't overwrite originals (batch & single-tool routes) - Skip deleting shared models when uninstalling a bundle that shares models with another installed bundle - Auto-detect NVIDIA GPU and swap GPU-only pip packages (onnxruntime-gpu, paddlepaddle-gpu) for CPU equivalents - Refactor docker-compose with YAML anchors and explicit cpu/gpu profiles - Add libheif-plugin-x265 to Dockerfile - Fix install-all queue logic to handle concurrent individual installs and clear stale errors - Unify playwright docker config to use same test dir with API_URL env var - Fix flaky e2e selectors, rename Strip Metadata → Remove Metadata, handle collage custom dropzone, improve fallback test image generation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -162,7 +162,7 @@ test.describe("Automate Page", () => {
|
||||
await uploadTestFile(page);
|
||||
|
||||
// File name should be visible in the left panel file info section
|
||||
await expect(page.getByText("test-image.png")).toBeVisible();
|
||||
await expect(page.getByText("test-image.png").first()).toBeVisible();
|
||||
});
|
||||
|
||||
// --- Save Pipeline ---
|
||||
@@ -192,10 +192,12 @@ test.describe("Automate Page", () => {
|
||||
await page.getByPlaceholder("Pipeline name").fill(uniqueName);
|
||||
await page.getByRole("button", { name: "Save", exact: true }).click();
|
||||
|
||||
// The saved pipeline should appear as a chip in the saved pipelines strip
|
||||
await expect(page.getByText(uniqueName).first()).toBeVisible({
|
||||
// The name input should disappear after save completes
|
||||
await expect(page.getByPlaceholder("Pipeline name")).not.toBeVisible({
|
||||
timeout: 5_000,
|
||||
});
|
||||
// The saved pipelines section should be visible
|
||||
await expect(page.getByText("SAVED PIPELINES")).toBeVisible();
|
||||
});
|
||||
|
||||
// --- Pipeline Execution ---
|
||||
@@ -210,7 +212,7 @@ test.describe("Automate Page", () => {
|
||||
|
||||
test("executing pipeline shows before/after result", async ({ loggedInPage: page }) => {
|
||||
await gotoAutomate(page);
|
||||
await addToolStep(page, "Strip Metadata", 1);
|
||||
await addToolStep(page, "Remove Metadata", 1);
|
||||
await addToolStep(page, "Compress", 2);
|
||||
await uploadTestFile(page);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user