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:
@@ -40,10 +40,10 @@ test.describe("Navigation", () => {
|
||||
await expect(page.getByText("Optimization")).toBeVisible();
|
||||
await expect(page.getByText("Adjustments")).toBeVisible();
|
||||
|
||||
// Should show tools
|
||||
await expect(page.getByText("Resize")).toBeVisible();
|
||||
await expect(page.getByText("Compress")).toBeVisible();
|
||||
await expect(page.getByText("Convert")).toBeVisible();
|
||||
// Should show tools (use heading-level locators to avoid matching descriptions)
|
||||
await expect(page.getByRole("link", { name: /^Resize/ }).first()).toBeVisible();
|
||||
await expect(page.getByRole("link", { name: /^Compress/ }).first()).toBeVisible();
|
||||
await expect(page.getByRole("link", { name: /^Convert/ }).first()).toBeVisible();
|
||||
});
|
||||
|
||||
test("fullscreen grid has search functionality", async ({ loggedInPage: page }) => {
|
||||
@@ -54,7 +54,7 @@ test.describe("Navigation", () => {
|
||||
|
||||
// Search for a specific tool
|
||||
await searchInput.fill("resize");
|
||||
await expect(page.getByText("Resize")).toBeVisible();
|
||||
await expect(page.getByRole("link", { name: /^Resize/ }).first()).toBeVisible();
|
||||
});
|
||||
|
||||
test("clicking a tool in fullscreen grid navigates to tool page", async ({
|
||||
|
||||
Reference in New Issue
Block a user