mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
test: repair serial-bucket quick wins and quarantine intractable specs (phase 4b)
Repairs (74 tests across 6 files): - rbac.spec.ts, settings.spec.ts: fix obsolete auth-state path (test-results/.auth/user.json -> .playwright/.auth/user.json via authFile import from playwright.config.ts) - state-bleed-audit.spec.ts, gui-file-carry.spec.ts, full-session.spec.ts: update bare tool routes (/resize -> /image/resize, etc.) to match the 2.0 /:modality/:toolId routing - gui-settings-rbac.spec.ts: fix 2 tests with bare /resize route Quarantine (65 tests across 2 files, tagged with test.skip()): - gui-performance.spec.ts (62 tests): bare routes throughout + selector drift; mechanical route fix is tractable but needs UI verification pass - theme.spec.ts (3 tests): footer theme toggle selector needs 2.0 UI verification QUARANTINE.md updated with full triage table. Vitest parity confirmed.
This commit is contained in:
@@ -10,7 +10,7 @@ import { expect, test, uploadTestImage, waitForProcessing } from "./helpers";
|
||||
test.describe("Full user session", () => {
|
||||
test("upload -> resize -> download cycle", async ({ loggedInPage: page }) => {
|
||||
// Navigate to resize tool
|
||||
await page.goto("/resize");
|
||||
await page.goto("/image/resize");
|
||||
await expect(page.getByText("Resize").first()).toBeVisible();
|
||||
|
||||
// Upload test image
|
||||
@@ -49,7 +49,7 @@ test.describe("Full user session", () => {
|
||||
});
|
||||
|
||||
test("upload -> rotate 90 -> download cycle", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/rotate");
|
||||
await page.goto("/image/rotate");
|
||||
await expect(page.getByText("Rotate").first()).toBeVisible();
|
||||
|
||||
await uploadTestImage(page);
|
||||
@@ -77,7 +77,7 @@ test.describe("Full user session", () => {
|
||||
});
|
||||
|
||||
test("upload -> convert to JPEG -> download cycle", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/convert");
|
||||
await page.goto("/image/convert");
|
||||
await expect(page.getByText("Convert").first()).toBeVisible();
|
||||
|
||||
await uploadTestImage(page);
|
||||
@@ -106,7 +106,7 @@ test.describe("Full user session", () => {
|
||||
});
|
||||
|
||||
test("upload -> crop -> download cycle", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/crop");
|
||||
await page.goto("/image/crop");
|
||||
await expect(page.getByText("Crop").first()).toBeVisible();
|
||||
|
||||
await uploadTestImage(page);
|
||||
@@ -141,7 +141,7 @@ test.describe("Full user session", () => {
|
||||
});
|
||||
|
||||
test("upload -> compress -> download cycle", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/compress");
|
||||
await page.goto("/image/compress");
|
||||
await expect(page.getByText("Compress").first()).toBeVisible();
|
||||
|
||||
await uploadTestImage(page);
|
||||
@@ -168,7 +168,7 @@ test.describe("Full user session", () => {
|
||||
|
||||
test("multi-tool session: resize then compress", async ({ loggedInPage: page }) => {
|
||||
// Step 1: Resize
|
||||
await page.goto("/resize");
|
||||
await page.goto("/image/resize");
|
||||
await uploadTestImage(page);
|
||||
await page.locator("input[placeholder='Auto']").first().fill("200");
|
||||
await page.getByRole("button", { name: "Resize" }).click();
|
||||
@@ -178,7 +178,7 @@ test.describe("Full user session", () => {
|
||||
await expect(resizeDownloadBtn).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
// Step 2: Navigate to compress and process a new image
|
||||
await page.goto("/compress");
|
||||
await page.goto("/image/compress");
|
||||
await uploadTestImage(page);
|
||||
await page.getByRole("button", { name: "Compress" }).click();
|
||||
await waitForProcessing(page);
|
||||
@@ -191,7 +191,7 @@ test.describe("Full user session", () => {
|
||||
loggedInPage: page,
|
||||
}) => {
|
||||
// Go to resize, upload, configure
|
||||
await page.goto("/resize");
|
||||
await page.goto("/image/resize");
|
||||
await uploadTestImage(page);
|
||||
await page.locator("input[placeholder='Auto']").first().fill("300");
|
||||
|
||||
@@ -200,12 +200,12 @@ test.describe("Full user session", () => {
|
||||
await expect(page.getByText("Upload from computer")).toBeVisible();
|
||||
|
||||
// Navigate back to resize - the tool should reset (fresh state)
|
||||
await page.goto("/resize");
|
||||
await page.goto("/image/resize");
|
||||
await expect(page.getByText("Upload from computer")).toBeVisible();
|
||||
});
|
||||
|
||||
test("download button triggers actual file download", async ({ loggedInPage: page }) => {
|
||||
await page.goto("/strip-metadata");
|
||||
await page.goto("/image/strip-metadata");
|
||||
await uploadTestImage(page);
|
||||
|
||||
await page.getByRole("button", { name: /remove metadata/i }).click();
|
||||
|
||||
Reference in New Issue
Block a user